Message409809
This is working as intended. Because you don't have a `__init__.py` file in your `tests` directory, Python considers it a potential namespace package. As such, Python keeps searching for a "normal" package that defines `__init__.py` for the same package name. Since Astroid has one and seemingly has it on `sys.path` in such a way as to get discovered, it gets selected as the package to use for the name `test`.
If you add a `tests/__init__.py` file then your issue will go away. |
|
Date |
User |
Action |
Args |
2022-01-05 23:10:20 | brett.cannon | set | recipients:
+ brett.cannon, danielnoord |
2022-01-05 23:10:20 | brett.cannon | set | messageid: <1641424220.23.0.0871620252539.issue46241@roundup.psfhosted.org> |
2022-01-05 23:10:20 | brett.cannon | link | issue46241 messages |
2022-01-05 23:10:20 | brett.cannon | create | |
|