-
Notifications
You must be signed in to change notification settings - Fork 37
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
Tries to import __main__.py
#229
Comments
I don't think we can guess what is CLI and what isn't. You can skip a file if you want to. https://github.com/scientific-python/pytest-doctestplus#skipping-tests |
You misunderstand;
There’s no guesswork involved here. Files called |
Ah, okay. For some reason, I never encountered this usage myself. Usually it is via entry points. Thanks for the clarification! |
Some ubiquitous tools like That results in |
__main__.py
doesn’t need aif __name__ == '__main__'
, since it just exists to be a CLITherefore doctestplus shouldn‘t try to import it.
The text was updated successfully, but these errors were encountered: