Merge pull request #3136 from brianmaissy/doc/document_warning_filtering_behavior

Clarify that warning capturing doesn't change the warning filter by d…
This commit is contained in:
Bruno Oliveira 2018-01-22 17:45:36 -02:00 committed by GitHub
commit e5739a3115
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

1
changelog/2457.doc Normal file
View File

@ -0,0 +1 @@
Clarify that warning capturing doesn't change the warning filter by default.

View File

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