From: Vinay Sajip Date: Sat, 19 May 2012 15:50:07 +0000 (+0100) Subject: Ignore exceptions on test handler closing. X-Git-Tag: v2.7.4rc1~806 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b57750db50ea876b60a75759f5101ac8736dadb;p=thirdparty%2FPython%2Fcpython.git Ignore exceptions on test handler closing. --- diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index a06deff9d6b5..08e2dca34b7f 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -1907,7 +1907,10 @@ class HandlerTest(BaseTest): h.handle(r) finally: remover.join() - h.close() + try: + h.close() + except ValueError: + pass if os.path.exists(fn): os.unlink(fn)