Ignore exceptions on test handler closing.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Sat, 19 May 2012 15:50:07 +0000 (16:50 +0100)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Sat, 19 May 2012 15:50:07 +0000 (16:50 +0100)
Lib/test/test_logging.py

index a06deff9d6b5e4c3d28708af361eee8409e93482..08e2dca34b7f74980a379bbda95c221f537572d9 100644 (file)
@@ -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)