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

Enable the doctest_standalone_namespace flag in the tests #4

Closed

Conversation

asmeurer
Copy link
Member

This flag isn't supported in pytest yet. It will be once
pytest-dev/pytest#6978 is merged. However, I would
recommend waiting until that PR is merged to merge this since the name of the
flag may change.

The flag will make it so that the doctests require all names to be imported in
order to pass, as opposed to the default behavior which automatically includes
all names from the surrounding module in the doctest namespace.

This flag isn't supported in pytest yet. It will be once
pytest-dev/pytest#6978 is merged. However, I would
recommend waiting until that PR is merged to merge this since the name of the
flag may change.

The flag will make it so that the doctests require all names to be imported in
order to pass, as opposed to the default behavior which automatically includes
all names from the surrounding module in the doctest namespace.
@scopatz scopatz closed this in #48 Jun 26, 2020
@scopatz scopatz added this to the June 2020 milestone Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants