[issue3780] No way to write unit tests for warnings

Benjamin Peterson report at bugs.python.org
Fri Sep 5 00:08:30 CEST 2008


Benjamin Peterson <musiccomposition at gmail.com> added the comment:

Would the new catch_warnings [1] context manager help in this regard?

[1] http://docs.python.org/dev/library/warnings.html#warnings.catch_warnings

----------
nosy: +benjamin.peterson

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


More information about the Python-bugs-list mailing list