doc: further minor improvements to parametrizing conditional raising

Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
This commit is contained in:
Christoph Anton Mitterer 2023-08-03 16:27:33 +02:00
parent 672e9a35bf
commit 1cc5b113ac
1 changed files with 3 additions and 2 deletions

View File

@ -685,5 +685,6 @@ For example:
with expectation as e:
assert (6 / example_input) == e
In the example above, the first three test cases should run unexceptionally,
while the fourth should raise ``ZeroDivisionError``.
In the example above, the first three test cases should run without any
exceptions, while the fourth should raise a``ZeroDivisionError`` exception,
which is expected by pytest.