[issue3780] No way to write unit tests for warnings

Jean-Paul Calderone report at bugs.python.org
Fri Sep 5 00:47:07 CEST 2008


Jean-Paul Calderone <exarkun at divmod.com> added the comment:

I was aware of it, but I didn't realize adding an "always" filter would
make sure all warnings always got noticed.  I haven't tried changing
Twisted's use of the warnings module yet, but it looks like
`catch_warnings` will work here.

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


More information about the Python-bugs-list mailing list