Skip to content

Commit

Permalink
Update capture-warnings.rst: Fix PEP number in link (#13215)
Browse files Browse the repository at this point in the history
This was linking to a completely unrelated PEP, presumably due to a typo.

Sorry there's no changelog, filing from my phone.
  • Loading branch information
SamB authored Feb 13, 2025
1 parent 05cc854 commit f0cc122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/en/how-to/capture-warnings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ See :ref:`@pytest.mark.filterwarnings <filterwarnings>` and
the :envvar:`python:PYTHONWARNINGS` environment variable or the
``-W`` command-line option, pytest will not configure any filters by default.

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

Expand Down

0 comments on commit f0cc122

Please sign in to comment.