summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_logging.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index a06deff9d6..08e2dca34b 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)