Skip to content

Commit

Permalink
Merge pull request pytest-dev#9611 from pllim/patch-1
Browse files Browse the repository at this point in the history
DOC: pytest.warns() fails on zero warning
  • Loading branch information
bluetech committed Feb 8, 2022
2 parents 4bf764f + d1b394a commit 04a6f52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/en/how-to/capture-warnings.rst
Expand Up @@ -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
Expand Down

0 comments on commit 04a6f52

Please sign in to comment.