commit | a5e764873a3e9ec80eea0517ee735d44031e713a | [log] [tgz] |
---|---|---|
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | Sun Mar 11 18:32:07 2007 +0000 |
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | Sun Mar 11 18:32:07 2007 +0000 |
tree | 3dbd0cea4ecb1d66b65ea6031e3d342fcb2a78c6 | |
parent | 2faa9e146681bb4d5ea2b795dfaade35a1d1c2df [diff] [blame] |
Fix resource leak reported in SF #1516995.
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index ee34f8c..d96d703 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py
@@ -555,6 +555,8 @@ except KeyError: logging.exception("just testing") os.remove(fn) + hdlr = logging.getLogger().handlers[0] + logging.getLogger().handlers.remove(hdlr) finally: logging._acquireLock() try: