Windows symlink broken by Path().resolve() #5905
Labels
platform: windows
windows platform-specific problem
topic: collection
related to the collection phase
type: bug
problem that needs to be addressed
type: regression
indicates a problem that was introduced in a release which was working previously
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:
#5564
I believe this may be the same cause of a different bug: #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.
The text was updated successfully, but these errors were encountered: