From f17525df26e65b8de304dad919f66aaeb61f1f5c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 27 Jan 2022 10:36:58 -0300 Subject: [PATCH] [7.0.x] doc: Add ellipsis to warning usecase list (#9562) Co-authored-by: Florian Bruhin --- doc/en/how-to/capture-warnings.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/en/how-to/capture-warnings.rst b/doc/en/how-to/capture-warnings.rst index 501edce7a14..065c11e610c 100644 --- a/doc/en/how-to/capture-warnings.rst +++ b/doc/en/how-to/capture-warnings.rst @@ -363,7 +363,7 @@ Here are some use cases involving warnings that often come up in tests, and sugg .. code-block:: python with pytest.warns(): - pass + ... - 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(): warnings.simplefilter("error") + ... - 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(): warnings.simplefilter("ignore") + ... .. _custom_failure_messages: