[7.0.x] doc: Add ellipsis to warning usecase list (#9562)

Co-authored-by: Florian Bruhin <me@the-compiler.org>
This commit is contained in:
github-actions[bot] 2022-01-27 10:36:58 -03:00 committed by GitHub
parent 0a7be971d2
commit f17525df26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: