Issue #14676: DeprecationWarning is ignored too; patch by Peter Eisentraut

This commit is contained in:
Sandro Tosi 2012-04-28 12:20:57 +02:00
parent aa31d52b80
commit 2d0bcd7ca9
1 changed files with 2 additions and 1 deletions

View File

@ -167,7 +167,8 @@ By default, Python installs several warning filters, which can be overridden by
the command-line options passed to :option:`-W` and calls to
:func:`filterwarnings`.
* :exc:`PendingDeprecationWarning`, and :exc:`ImportWarning` are ignored.
* :exc:`DeprecationWarning` and :exc:`PendingDeprecationWarning`, and
:exc:`ImportWarning` are ignored.
* :exc:`BytesWarning` is ignored unless the :option:`-b` option is given once or
twice; in this case this warning is either printed (``-b``) or turned into an