summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_logging.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2012-05-19 15:50:07 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2012-05-19 15:50:07 (GMT)
commit7b57750db50ea876b60a75759f5101ac8736dadb (patch)
tree4f8c05c32b5818ed01037e4da22e75cf5b4f8f26 /Lib/test/test_logging.py
parent6d9c1b1617b30ee24eaa358f4142706148d21922 (diff)
downloadcpython-7b57750db50ea876b60a75759f5101ac8736dadb.zip
cpython-7b57750db50ea876b60a75759f5101ac8736dadb.tar.gz
cpython-7b57750db50ea876b60a75759f5101ac8736dadb.tar.bz2
Ignore exceptions on test handler closing.
Diffstat (limited to 'Lib/test/test_logging.py')
-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 a06deff..08e2dca 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)