Skip to content

Commit f0cc122

Browse files
authored
Update capture-warnings.rst: Fix PEP number in link (#13215)
This was linking to a completely unrelated PEP, presumably due to a typo. Sorry there's no changelog, filing from my phone.
1 parent 05cc854 commit f0cc122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: doc/en/how-to/capture-warnings.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ See :ref:`@pytest.mark.filterwarnings <filterwarnings>` and
250250
the :envvar:`python:PYTHONWARNINGS` environment variable or the
251251
``-W`` command-line option, pytest will not configure any filters by default.
252252

253-
Also pytest doesn't follow :pep:`506` suggestion of resetting all warning filters because
253+
Also pytest doesn't follow :pep:`565` suggestion of resetting all warning filters because
254254
it might break test suites that configure warning filters themselves
255255
by calling :func:`warnings.simplefilter` (see :issue:`2430` for an example of that).
256256

0 commit comments

Comments
 (0)