mirror of https://github.com/python/cpython
Fix resource leak reported in SF #1516995.
This commit is contained in:
parent
2faa9e1466
commit
a5e764873a
|
@ -555,6 +555,8 @@ def test5():
|
|||
except KeyError:
|
||||
logging.exception("just testing")
|
||||
os.remove(fn)
|
||||
hdlr = logging.getLogger().handlers[0]
|
||||
logging.getLogger().handlers.remove(hdlr)
|
||||
finally:
|
||||
logging._acquireLock()
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue