[issue10512] regrtest ResourceWarning - unclosed sockets and files
Nadeem Vawda
report at bugs.python.org
Wed Jan 5 22:26:50 CET 2011
Nadeem Vawda <nadeem.vawda at gmail.com> added the comment:
Fix attached for test_imaplib. Most of the warnings were simply due to reap_server() not closing the server object correctly. The remaining warning was due a genuine leak in imaplib.IMAP4.__init__() - if an exception is raised after the connection is opened, the socket is not closed.
----------
Added file: http://bugs.python.org/file20283/test_imaplib.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10512>
_______________________________________
More information about the Python-bugs-list
mailing list