Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compare also paths on Windows when considering ImportPathMismatchError #8123

Merged
merged 1 commit into from Dec 13, 2020

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 PR has been backported to the current bug-fix branch 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
backported PR has been backported to the current bug-fix branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ImportPathMismatchError on WindowsPath ImportPathMismatchError when on UNC path
3 participants