Link mentioned functions instead of using literals (#8045)
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user