summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTim Hoffmann <2836374+timhoffm@users.noreply.github.com>2020-11-19 15:44:59 +0100
committerGitHub <noreply@github.com>2020-11-19 15:44:59 +0100
commitafd53ede6f3c950df3bfc9e81afdd45e09ef6d2b (patch)
tree7bebe98ff0dfd49704ae5cfb9e7ec8a96ff00748 /src
parent329e66c22eda168cc49d6fa5027d06717a9079f7 (diff)
downloadpytest-afd53ede6f3c950df3bfc9e81afdd45e09ef6d2b.tar.gz
Link mentioned functions instead of using literals (#8045)
Diffstat (limited to 'src')
-rw-r--r--src/_pytest/recwarn.py2
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):