doc: don't use different name

Needlessly using a different name rather just confuses people.

Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
This commit is contained in:
Christoph Anton Mitterer 2023-08-03 16:14:56 +02:00
parent 4797deab99
commit 21f45ac5f3
1 changed files with 4 additions and 4 deletions

View File

@ -663,7 +663,7 @@ For example:
.. code-block:: python .. code-block:: python
from contextlib import nullcontext as does_not_raise from contextlib import nullcontext
import pytest import pytest
@ -671,9 +671,9 @@ For example:
@pytest.mark.parametrize( @pytest.mark.parametrize(
"example_input,expectation", "example_input,expectation",
[ [
(3, does_not_raise()), (3, nullcontext()),
(2, does_not_raise()), (2, nullcontext()),
(1, does_not_raise()), (1, nullcontext()),
(0, pytest.raises(ZeroDivisionError)), (0, pytest.raises(ZeroDivisionError)),
], ],
) )