Closed adamkerz closed 4 years ago
Confirmed:
pytest==5.0.1
is fine
pytest==5.1.0
exhibits the bug. This is a regression.
Can you git-bisect it?
Yes, I will try to get time to do that, blueyed.
This should be closed as a duplicate of https://github.com/pytest-dev/pytest/issues/5965 (since that one has a pull request).
On Windows 10 (v1903, 18362.356) I have created a D: drive using Subst. My tests used to work, but I recently upgraded pytest and found that I now get this error message for every test file:
Well, they are the same file, deleting ALL pycache/.pyc files has no impact and I believe the problem was introduced in this PR: https://github.com/pytest-dev/pytest/pull/5564
I believe this may be the same cause of a different bug: https://github.com/pytest-dev/pytest/issues/5826
Is it possible to use Path().absolute() instead?
Pytest version:
5.1.3
To recreate, use subst to map a folder where you have tests into a new drive letter, cd to that folder on the new drive letter and try to run the tests again.