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

[modules] Consider docstrings imports as tests #91

Merged
merged 2 commits into from Jul 9, 2018

Conversation

gforcada
Copy link
Collaborator

@gforcada gforcada commented Jul 8, 2018

Any import in a docstring is not used when running the code in a normal
mode, but rather only when called with some special tools, like a test
runner.

Thus, always consider the imports done there to be test imports.

Any import in a docstring is not used when running the code in a normal
mode, but rather only when called with some special tools, like a test
runner.

Thus, always consider the imports done there to be test imports.
@reinout
Copy link
Owner

reinout commented Jul 9, 2018

Looks good.

@reinout reinout merged commit 5607c30 into master Jul 9, 2018
@reinout reinout deleted the docstring-test-imports branch July 9, 2018 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants