diff options
author | Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> | 2020-11-19 15:44:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-19 15:44:59 +0100 |
commit | afd53ede6f3c950df3bfc9e81afdd45e09ef6d2b (patch) | |
tree | 7bebe98ff0dfd49704ae5cfb9e7ec8a96ff00748 /src | |
parent | 329e66c22eda168cc49d6fa5027d06717a9079f7 (diff) | |
download | pytest-afd53ede6f3c950df3bfc9e81afdd45e09ef6d2b.tar.gz |
Link mentioned functions instead of using literals (#8045)
Diffstat (limited to 'src')
-rw-r--r-- | src/_pytest/recwarn.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/_pytest/recwarn.py b/src/_pytest/recwarn.py index 6c04c2e16..4fe365cda 100644 --- a/src/_pytest/recwarn.py +++ b/src/_pytest/recwarn.py @@ -115,7 +115,7 @@ def warns( one for each warning raised. This function can be used as a context manager, or any of the other ways - ``pytest.raises`` can be used:: + :func:`pytest.raises` can be used:: >>> import pytest >>> with pytest.warns(RuntimeWarning): |