summaryrefslogtreecommitdiff
path: root/src/_pytest/recwarn.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/_pytest/recwarn.py')
-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):