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
commit 04a6f52d67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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