DOC: pytest.warns() fails on zero warning

This commit is contained in:
P. L. Lim 2022-02-04 17:45:04 -05:00 committed by GitHub
parent 77a38a3b75
commit d1b394af88
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: 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 .. code-block:: python