You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pytest Discovery broken when multiple modules have overlapping paths #11275
$ pytest --collect-only ./a ./b
ImportError while loading conftest '/Users/roy/code/oss/pytest_discover_failure/b/tests/conftest.py'.
ModuleNotFoundError: No module named 'tests.conftest'
Note that pytest --collect-only works for ./a and ./b individually.
Activity
RonnyPfannschmidt commentedon Aug 3, 2023
Currently you'd need init files in both a and b
The import roots proposal is supposed to resolve the issue
Zac-HD commentedon Aug 9, 2023
@RonnyPfannschmidt the import roots proposal is #10824, right?