[Python-checkins] cpython (3.2): Changed order of cleanup operations to be more sensible.

vinay.sajip python-checkins at python.org
Thu May 3 13:09:53 CEST 2012


http://hg.python.org/cpython/rev/c334e90160b9
changeset:   76728:c334e90160b9
branch:      3.2
parent:      76718:26c1a1f29e1e
user:        Vinay Sajip <vinay_sajip at yahoo.co.uk>
date:        Thu May 03 12:06:52 2012 +0100
summary:
  Changed order of cleanup operations to be more sensible.

files:
  Lib/test/test_logging.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -2360,8 +2360,8 @@
                     r = logging.makeLogRecord({'msg': 'testing' })
                     h.handle(r)
             finally:
+                remover.join()
                 h.close()
-                remover.join()
                 if os.path.exists(fn):
                     os.unlink(fn)
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list