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

add PYTEST_DONT_REWRITE in order to suppress already imported warning #151

Merged
merged 1 commit into from
Feb 15, 2019

Conversation

jonathansp
Copy link
Contributor

After calling pytest.main twice, pytest creates this warning summary

===================================================================== warnings summary =====================================================================
~/lib/python2.7/site-packages/_pytest/assertion/rewrite.py:272
~/lib/python2.7/site-packages/_pytest/assertion/rewrite.py:272: PytestWarning: Module already imported so cannot be rewritten: pytest_benchmark
    self.config,
...

According to

the doc string PYTEST_DONT_REWRITE can be used to suppress this warning.

@jonathansp
Copy link
Contributor Author

@ionelmc could you please take a look? thanks

@ionelmc ionelmc merged commit 35e57c1 into ionelmc:master Feb 15, 2019
@ionelmc
Copy link
Owner

ionelmc commented Feb 15, 2019

Thanks.

@ionelmc
Copy link
Owner

ionelmc commented Feb 15, 2019

There will be a release in a week or so if it matters.

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