test_ok2/doc/en/example
Christoph Anton Mitterer b8b74331b4
Improve docs for Parametrizing conditional raising (#11279)
What one typically actually wants in such a case is both, checking for some
resulting values *and* checking for some expected exception.

Since this is easily possible with the `nullcontext` context manager, adapt the
example accordingly (needlessly using a different name rather just confuses people).

Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
2023-08-03 13:31:17 -03:00
..
assertion Remove/replace some unneeded usages of py.path 2021-03-14 14:12:28 +02:00
fixtures Minor updates to fixtures docs (#10724) 2023-02-28 12:42:33 -03:00
nonpython doc: fix EncodingWarnings in examples (#11158) 2023-07-08 15:40:05 -03:00
attic.rst doc: Reformat/Modernize some code (#9900) 2022-04-28 16:30:16 +02:00
conftest.py pre-commit run fix-encoding-pragma --all-files 2019-06-03 12:08:01 -03:00
index.rst Added how-to and reference directories. 2021-03-11 22:13:01 +00:00
markers.rst Merge pull request #10412 from pytest-dev/release-7.2.0 (#10419) 2022-10-25 13:12:55 +02:00
multipython.py doc/example/parametrize: a few fixes/improvements 2023-07-20 09:51:11 +03:00
nonpython.rst Fix a few broken links in the documentation 2022-10-05 10:24:55 -04:00
parametrize.rst Improve docs for Parametrizing conditional raising (#11279) 2023-08-03 13:31:17 -03:00
pythoncollection.py pre-commit run pyupgrade --all-files 2019-06-03 12:08:02 -03:00
pythoncollection.rst run regendoc 2023-03-17 21:58:26 +01:00
reportingdemo.rst Merge pull request #10881 from pytest-dev/release-7.3.0 2023-04-09 00:50:37 +03:00
simple.rst Switch to new-style pluggy hook wrappers 2023-07-14 22:47:48 +03:00
special.rst Fix output of example test method. 2021-11-30 14:55:05 +11:00
xfail_demo.py pre-commit run fix-encoding-pragma --all-files 2019-06-03 12:08:01 -03:00