[New-bugs-announce] [issue21724] resetwarnings doesn't reset warnings registry

Antoine Pitrou report at bugs.python.org
Wed Jun 11 18:11:44 CEST 2014


New submission from Antoine Pitrou:

There seems to be no (official) way to reset the warnings registry; in particular, resetwarnings() doesn't reset it. It makes it difficult to get repeatable warning messages, e.g. at the command prompt, because the shortcut path will silence messages which were already emitted, even if the filter have been changed to "always" in-between.

----------
messages: 220282
nosy: brett.cannon, eric.snow, ncoghlan, pitrou
priority: normal
severity: normal
status: open
title: resetwarnings doesn't reset warnings registry
type: behavior
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21724>
_______________________________________


More information about the New-bugs-announce mailing list