Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 409ea5d

Browse files
committed
Include the mention of ResourceWarning being displayed by default by the test runner.
Addressing #issue 20529
1 parent b7d6d2a commit 409ea5d

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

Doc/library/unittest.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1754,13 +1754,14 @@ Loading and running tests
17541754
applications which run test suites should provide alternate implementations.
17551755

17561756
By default this runner shows :exc:`DeprecationWarning`,
1757-
:exc:`PendingDeprecationWarning`, and :exc:`ImportWarning` even if they are
1758-
:ref:`ignored by default <warning-ignored>`. Deprecation warnings caused by
1759-
:ref:`deprecated unittest methods <deprecated-aliases>` are also
1760-
special-cased and, when the warning filters are ``'default'`` or ``'always'``,
1761-
they will appear only once per-module, in order to avoid too many warning
1762-
messages. This behavior can be overridden using the :option:`-Wd` or
1763-
:option:`-Wa` options and leaving *warnings* to ``None``.
1757+
:exc:`PendingDeprecationWarning`, :exc:`ResourceWarning` and
1758+
:exc:`ImportWarning` even if they are :ref:`ignored by default <warning-
1759+
ignored>`. Deprecation warnings caused by :ref:`deprecated unittest methods
1760+
<deprecated-aliases>` are also special-cased and, when the warning filters
1761+
are ``'default'`` or ``'always'``, they will appear only once per-module, in
1762+
order to avoid too many warning messages. This behavior can be overridden
1763+
using the :option:`-Wd` or :option:`-Wa` options and leaving *warnings* to
1764+
``None``.
17641765

17651766
.. versionchanged:: 3.2
17661767
Added the ``warnings`` argument.

0 commit comments

Comments
 (0)