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

Test discovery with implicit namespace packages #11

Closed
paparomeo opened this issue Jan 6, 2014 · 4 comments
Closed

Test discovery with implicit namespace packages #11

paparomeo opened this issue Jan 6, 2014 · 4 comments

Comments

@paparomeo
Copy link

Python 3.3 introduced implicit namespace packages (�PEP 420). Test discovery won't work for modules in packages which in turn are in an implicit namespace package.

@mgedmin
Copy link
Member

mgedmin commented Jan 6, 2014

That's true. Do you have any suggestions? E.g. check if a directory's parent is on sys.path, and if so, assume it's a package (handwaving the details)?

@paparomeo
Copy link
Author

I am afraid I still haven't done any serious research into possible solutions. I noticed the issue with my current project and have reverted for the moment to using explicit namespace packages as the quick workaround. I will be revisiting this when I have some spare time in the future, but wanted to make it a known issue meanwhile.

@dataflake
Copy link
Member

Please follow up on #160 which has more details, closing this as duplicate

@icemac
Copy link
Member

icemac commented Jan 26, 2024

Wow, we actually knew about this problem for 10 years! Eventually the time to fix it has come.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants