From 21f45ac5f3542b2b80124e7f7ae4af61281cea26 Mon Sep 17 00:00:00 2001 From: Christoph Anton Mitterer Date: Thu, 3 Aug 2023 16:14:56 +0200 Subject: [PATCH] doc: don't use different name Needlessly using a different name rather just confuses people. Signed-off-by: Christoph Anton Mitterer --- doc/en/example/parametrize.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/en/example/parametrize.rst b/doc/en/example/parametrize.rst index f771e5da4..ff64ce077 100644 --- a/doc/en/example/parametrize.rst +++ b/doc/en/example/parametrize.rst @@ -663,7 +663,7 @@ For example: .. code-block:: python - from contextlib import nullcontext as does_not_raise + from contextlib import nullcontext import pytest @@ -671,9 +671,9 @@ For example: @pytest.mark.parametrize( "example_input,expectation", [ - (3, does_not_raise()), - (2, does_not_raise()), - (1, does_not_raise()), + (3, nullcontext()), + (2, nullcontext()), + (1, nullcontext()), (0, pytest.raises(ZeroDivisionError)), ], )