[7.0.x] doc: Add ellipsis to warning usecase list

This commit is contained in:
Florian Bruhin 2022-01-27 13:32:37 +01:00 committed by pytest bot
parent 4b1707ff70
commit a48946308f
1 changed files with 3 additions and 1 deletions

View File

@ -363,7 +363,7 @@ Here are some use cases involving warnings that often come up in tests, and sugg
.. code-block:: python .. code-block:: python
with pytest.warns(): with pytest.warns():
pass ...
- To ensure that **no** warnings are emitted, use: - To ensure that **no** warnings are emitted, use:
@ -371,6 +371,7 @@ Here are some use cases involving warnings that often come up in tests, and sugg
with warnings.catch_warnings(): with warnings.catch_warnings():
warnings.simplefilter("error") warnings.simplefilter("error")
...
- To suppress warnings, use: - To suppress warnings, use:
@ -378,6 +379,7 @@ Here are some use cases involving warnings that often come up in tests, and sugg
with warnings.catch_warnings(): with warnings.catch_warnings():
warnings.simplefilter("ignore") warnings.simplefilter("ignore")
...
.. _custom_failure_messages: .. _custom_failure_messages: