You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that a new tmpdir_factory was introduced in 2.8 as a builtin fixture, and your fixture is overriding it here because it has the same name. Your fixture uses tmpdir, and the problem is that the builtin tmpdir fixture now requires tmpdir_factory (the builtin), but your fixture overwrote the builtin with your own (which requires tmpdir) hence there's a recursion.
The workaround is to rename your tmpdir_factory fixture to something else, I'm afraid (looking at your code perhaps you can replace your tmpdir_factory implementation with pytest's, they have the same purpose albeit slightly different interfaces).
Not sure how simple it is to fix this in pytest to at least produce a better message, though.
Simplest reproduction:
pytest version: 2.8.1
fwiw this breaks my build here: https://travis-ci.org/pre-commit/pre-commit/jobs/83034637
The text was updated successfully, but these errors were encountered: