[issue5695] test_logging fails when run twice in a row

Vinay Sajip report at bugs.python.org
Sun Apr 5 13:11:10 CEST 2009


Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:

The problem was caused by the logging.captureWarnings(True) call being
left outside the "with warnings.catch_warnings()" during Brett's change
to test_logging (r70975). Since logging.captureWarnings grabs
warnings.showwarning, in order for warnings.catch_warnings to restore
things to how they were before, ISTM that this capture needs to be
inside the with.

Fix checked into trunk (r71221).

----------
nosy: +brett.cannon
resolution:  -> fixed
status: open -> closed

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


More information about the Python-bugs-list mailing list