[issue5695] test_logging fails when run twice in a row

2009-04-07 Thread Vinay Sajip
Vinay Sajip added the comment: Done, in r71370. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue5695] test_logging fails when run twice in a row

2009-04-05 Thread Brett Cannon
Brett Cannon 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 excepti

[issue5695] test_logging fails when run twice in a row

2009-04-05 Thread Vinay Sajip
Vinay Sajip 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 t

[issue5695] test_logging fails when run twice in a row

2009-04-04 Thread Antoine Pitrou
New submission from Antoine Pitrou : This happens e.g. when searching for refleaks (the -R option to regrtest). ./python -m test.regrtest test_logging test_logging Could not find '/home/antoine/py3k/debug/Lib/test' in sys.path to remove it test_logging test_logging test test_logging failed -- T