Merge pull request #9611 from pllim/patch-1

DOC: pytest.warns() fails on zero warning
This commit is contained in:
Ran Benita
2022-02-08 16:00:06 +02:00
committed by GitHub

View File

@@ -358,7 +358,7 @@ Additional use cases of warnings in tests
Here are some use cases involving warnings that often come up in tests, and suggestions on how to deal with them:
- To ensure that **any** warning is emitted, use:
- To ensure that **at least one** warning is emitted, use:
.. code-block:: python