[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

Nick Coghlan report at bugs.python.org
Tue Sep 9 12:40:47 CEST 2008

Nick Coghlan <ncoghlan at gmail.com> added the comment:

As far as the use cases go, it was moved out of test.test_support to
warnings SOLELY due to the requests from the twisted folks for
assistance in testing their generation of warnings. The fact that it is
also useful for suppressing warnings in general without affecting the
global state of the warnings module (aside from thread safety issues) is
just a bonus.

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list