doc: fix some broken Sphinx references

This commit is contained in:
Ran Benita
2023-12-06 23:37:52 +02:00
parent a5ee9f2ecd
commit 9056db4de5
19 changed files with 55 additions and 71 deletions

View File

@@ -825,8 +825,6 @@ def raises( # noqa: F811
When using :py:func:`pytest.raises` as a function, you can use:
``pytest.raises(Exc, func, match="passed on").match("my pattern")``.)
.. currentmodule:: _pytest._code
Use ``pytest.raises`` as a context manager, which will capture the exception of the given
type, or any of its subclasses::