]> granicus.if.org Git - python/commitdiff
Changed order of cleanup operations to be more sensible.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Thu, 3 May 2012 11:03:29 +0000 (12:03 +0100)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Thu, 3 May 2012 11:03:29 +0000 (12:03 +0100)
Lib/test/test_logging.py

index d7c8d4fe4281625ca6d8caeceec5ad22b07f99e9..a06deff9d6b5e4c3d28708af361eee8409e93482 100644 (file)
@@ -1906,8 +1906,8 @@ class HandlerTest(BaseTest):
                     r = logging.makeLogRecord({'msg': 'testing' })
                     h.handle(r)
             finally:
-                h.close()
                 remover.join()
+                h.close()
                 if os.path.exists(fn):
                     os.unlink(fn)