From 7b57750db50ea876b60a75759f5101ac8736dadb Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Sat, 19 May 2012 16:50:07 +0100 Subject: [PATCH] Ignore exceptions on test handler closing. --- Lib/test/test_logging.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index a06deff9d6b..08e2dca34b7 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)