Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@nicoddemus
Copy link
Member

On Windows, os.path.samefile returns false for paths mounted in UNC paths which
point to the same location.

I couldn't reproduce the actual case reported, but looking at the code it seems
this commit should fix the issue.

Fix #7678
Fix #8076

On Windows, os.path.samefile returns false for paths mounted in UNC paths which
point to the same location.

I couldn't reproduce the actual case reported, but looking at the code it seems
this commit should fix the issue.

Fix pytest-dev#7678
Fix pytest-dev#8076
@nicoddemus nicoddemus added the needs backport applied to PRs, indicates that it should be ported to the current bug-fix branch label Dec 12, 2020
@nicoddemus nicoddemus merged commit 7e2e663 into pytest-dev:master Dec 13, 2020
@nicoddemus nicoddemus deleted the import-mismatch-unc branch December 13, 2020 13:35
nicoddemus added a commit to nicoddemus/pytest that referenced this pull request Dec 13, 2020
Compare also paths on Windows when considering ImportPathMismatchError
@nicoddemus
Copy link
Member Author

Backport: #8135

nicoddemus added a commit that referenced this pull request Dec 13, 2020
[6.2] Merge pull request #8123 from nicoddemus/import-mismatch-unc
@nicoddemus nicoddemus added backported and removed needs backport applied to PRs, indicates that it should be ported to the current bug-fix branch labels Dec 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ImportPathMismatchError on WindowsPath ImportPathMismatchError when on UNC path

3 participants