DOC: pytest.warns() fails on zero warning
This commit is contained in:
parent
77a38a3b75
commit
d1b394af88
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue