Clarify that warning capturing doesn't change the warning filter by default
This commit is contained in:
parent
621374679b
commit
5c0b340a4b
|
@ -0,0 +1 @@
|
|||
Clarify that warning capturing doesn't change the warning filter by default.
|
|
@ -112,6 +112,12 @@ decorator or to all tests in a module by setting the ``pytestmark`` variable:
|
|||
pytestmark = pytest.mark.filterwarnings('error')
|
||||
|
||||
|
||||
.. note::
|
||||
|
||||
Except for these features, pytest does not change the python warning filter; it only captures
|
||||
and displays the warnings which are issued with respect to the currently configured filter,
|
||||
including changes to the filter made by test functions or by the system under test.
|
||||
|
||||
.. note::
|
||||
|
||||
``DeprecationWarning`` and ``PendingDeprecationWarning`` are hidden by the standard library
|
||||
|
|
Loading…
Reference in New Issue