Changed order of cleanup operations to be more sensible.

This commit is contained in:
Vinay Sajip 2012-05-03 12:03:29 +01:00
parent dee8dadf31
commit e5d3bc4700
1 changed files with 1 additions and 1 deletions

View File

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