Link mentioned functions instead of using literals (#8045)

This commit is contained in:
Tim Hoffmann
2020-11-19 15:44:59 +01:00
committed by GitHub
parent 329e66c22e
commit afd53ede6f
4 changed files with 13 additions and 13 deletions

View File

@@ -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):