pytest.warns(None) does not fail if warnings are raised. #8644
Labels
type: docs
documentation improvement, missing or needing clarification
type: question
general question, might be closed after 2 weeks of inactivity
Uh oh!
There was an error while loading. Please reload this page.
I expect that
pytest.warns(None)
is an assertion that no warnings are raised.Running pytest on the above does not fail. I would expect a failure, something like "a warning was raised where no warning was expected".
OS: Ubuntu 18.04
The text was updated successfully, but these errors were encountered: