diff options
author | Daniel Hahler <git@thequod.de> | 2020-02-22 19:23:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-22 19:23:35 +0100 |
commit | 04126feea7f566c3b6b7d665cc96c1b8b12d08a5 (patch) | |
tree | 59322a4c86a9bcd2c9f9fb89c2ad746ae4da3db8 /src/_pytest/python_api.py | |
parent | eeebcd77dd8d267c4577314f9f799b1502b4f71c (diff) | |
download | pytest-04126feea7f566c3b6b7d665cc96c1b8b12d08a5.tar.gz |
doc: `pytest.raises`: link to `python:try` (#6794)
Diffstat (limited to 'src/_pytest/python_api.py')
-rw-r--r-- | src/_pytest/python_api.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/_pytest/python_api.py b/src/_pytest/python_api.py index 24145016c..c9d2cd3bd 100644 --- a/src/_pytest/python_api.py +++ b/src/_pytest/python_api.py @@ -678,10 +678,9 @@ def raises( # noqa: F811 the exception --> current frame stack --> local variables --> ``ExceptionInfo``) which makes Python keep all objects referenced from that cycle (including all local variables in the current - frame) alive until the next cyclic garbage collection run. See the - official Python ``try`` statement documentation for more detailed - information. - + frame) alive until the next cyclic garbage collection run. + More detailed information can be found in the official Python + documentation for :ref:`the try statement <python:try>`. """ __tracebackhide__ = True for exc in filterfalse( |