Skip to content

Add test for Pytest issue 9765#1

Merged
lesteve merged 1 commit intofcharras:FIX/crash_during_conftest_collectionfrom
lesteve:add-issue-9765-test
Jan 9, 2024
Merged

Add test for Pytest issue 9765#1
lesteve merged 1 commit intofcharras:FIX/crash_during_conftest_collectionfrom
lesteve:add-issue-9765-test

Conversation

@lesteve
Copy link
Collaborator

@lesteve lesteve commented Jan 8, 2024

pytest-dev#9765

For some reason, the error in the test is not exactly the same assert mod not in mods as in the reproducer https://github.com/lesteve/pytest-issue-9765-reproducer but this seems close enough, note the capital C: vs small c: in the paths:

ImportError while loading conftest 'C:\msys64\tmp\pytest-of-rjxQE\pytest-32\test_issue_97650\my_package\conftest.py'.
_pytest.pathlib.ImportPathMismatchError: ('my_package.conftest', 'c:\\msys64\\tmp\\pytest-of-rjxqe\\pytest-22\\test_i
ssue_97650\\my_package\\conftest.py', WindowsPath('C:/msys64/tmp/pytest-of-rjxQE/pytest-32/test_issue_97650/my_packag
e/conftest.py'))

@lesteve lesteve changed the title Add test for issue #9765 Add test for issue https://github.com/pytest-dev/pytest/issues/9765 Jan 8, 2024
@lesteve lesteve changed the title Add test for issue https://github.com/pytest-dev/pytest/issues/9765 Add test for Pytest issue 9765 Jan 8, 2024
@lesteve lesteve merged commit f479a1a into fcharras:FIX/crash_during_conftest_collection Jan 9, 2024
@lesteve lesteve deleted the add-issue-9765-test branch January 9, 2024 09:06
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.

1 participant