-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Fix importer call #1837
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
Fix importer call #1837
Conversation
thanks, the fix is correct according to https://www.python.org/dev/peps/pep-0302/ i wonder if there is a simple way to test it how did you create the zip thats running pytest? |
I run tests from zips in my project (https://github.com/mbachry/exxo/), but here's a relatively simple way to reproduce, if you have access to Linux with Python 3.5:
Not sure if it's easy to turn it into a proper unit test... |
@nicoddemus Thanks. I'll leave it to you then. |
get_filename
expects full module name as a parameter. Currently pytest fails, if I run it with zip importer.