Skip to content

Commit f17525d

Browse files
github-actions[bot]The-Compiler
andauthoredJan 27, 2022
[7.0.x] doc: Add ellipsis to warning usecase list (#9562)
Co-authored-by: Florian Bruhin <[email protected]>
1 parent 0a7be97 commit f17525d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎doc/en/how-to/capture-warnings.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -363,21 +363,23 @@ Here are some use cases involving warnings that often come up in tests, and sugg
363363
.. code-block:: python
364364
365365
with pytest.warns():
366-
pass
366+
...
367367
368368
- To ensure that **no** warnings are emitted, use:
369369

370370
.. code-block:: python
371371
372372
with warnings.catch_warnings():
373373
warnings.simplefilter("error")
374+
...
374375
375376
- To suppress warnings, use:
376377

377378
.. code-block:: python
378379
379380
with warnings.catch_warnings():
380381
warnings.simplefilter("ignore")
382+
...
381383
382384
383385
.. _custom_failure_messages:

0 commit comments

Comments
 (0)
Please sign in to comment.