[New-bugs-announce] [issue20131] warnings module offers no documented, programmatic way to reset "seen-warning" flag
report at bugs.python.org
Sun Jan 5 13:39:29 CET 2014
New submission from Andreas Kloeckner:
For tests and doctests, it is often desirable to show or verify that a certain warning occurs. Unfortunately, if the warning has been hit previously, it will not be issued again. It would be great if there were a documented, unified way to reset this 'seen' flag.
Related stackoverflow posts showing that I'm not the first person to have this need:
Neither of these has a satisfactory solution.
components: Library (Lib)
title: warnings module offers no documented, programmatic way to reset "seen-warning" flag
versions: Python 2.7, Python 3.4
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce