[issue5695] test_logging fails when run twice in a row

Brett Cannon report at bugs.python.org
Sun Apr 5 20:59:56 CEST 2009


Brett Cannon <brett at python.org> added the comment:

Yep, my mistake. To make up for my screw-up I backported the change to py3k
in r71259. In trunk you might want to make the test more robust by moving
the warnings filter change to within the try statement like I did in py3k to
prevent that from throwing an exception and preventing the
captureWarnings(False) call from being executed.

----------
Added file: http://bugs.python.org/file13623/unnamed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5695>
_______________________________________
-------------- next part --------------
Yep, my mistake. To make up for my screw-up I backported the change to py3k in r71259. In trunk you might want to make the test more robust by moving the warnings filter change to within the try statement like I did in py3k to prevent that from throwing an exception and preventing the captureWarnings(False) call from being executed.<br>



More information about the Python-bugs-list mailing list