summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2014-02-08 22:28:03 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2014-02-08 22:28:03 (GMT)
commit409ea5dac1bc9fb408b7ae27c57132dec5a7f9b6 (patch)
treeab98f7ec0d422b195aa52d6ed09a79d44912bb24
parentb7d6d2ac6ea4361fd72314d466029bd119ad3fea (diff)
downloadcpython-409ea5dac1bc9fb408b7ae27c57132dec5a7f9b6.zip
cpython-409ea5dac1bc9fb408b7ae27c57132dec5a7f9b6.tar.gz
cpython-409ea5dac1bc9fb408b7ae27c57132dec5a7f9b6.tar.bz2
Include the mention of ResourceWarning being displayed by default by the test runner.
Addressing #issue 20529
-rw-r--r--Doc/library/unittest.rst15
1 files changed, 8 insertions, 7 deletions
diff --git a/Doc/library/unittest.rst b/Doc/library/unittest.rst
index fcfd514..fa4b468 100644
--- a/Doc/library/unittest.rst
+++ b/Doc/library/unittest.rst
@@ -1754,13 +1754,14 @@ Loading and running tests
applications which run test suites should provide alternate implementations.
By default this runner shows :exc:`DeprecationWarning`,
- :exc:`PendingDeprecationWarning`, and :exc:`ImportWarning` even if they are
- :ref:`ignored by default <warning-ignored>`. Deprecation warnings caused by
- :ref:`deprecated unittest methods <deprecated-aliases>` are also
- special-cased and, when the warning filters are ``'default'`` or ``'always'``,
- they will appear only once per-module, in order to avoid too many warning
- messages. This behavior can be overridden using the :option:`-Wd` or
- :option:`-Wa` options and leaving *warnings* to ``None``.
+ :exc:`PendingDeprecationWarning`, :exc:`ResourceWarning` and
+ :exc:`ImportWarning` even if they are :ref:`ignored by default <warning-
+ ignored>`. Deprecation warnings caused by :ref:`deprecated unittest methods
+ <deprecated-aliases>` are also special-cased and, when the warning filters
+ are ``'default'`` or ``'always'``, they will appear only once per-module, in
+ order to avoid too many warning messages. This behavior can be overridden
+ using the :option:`-Wd` or :option:`-Wa` options and leaving *warnings* to
+ ``None``.
.. versionchanged:: 3.2
Added the ``warnings`` argument.