[Python-checkins] r87778 - python/branches/py3k/Lib/test/test_imaplib.py
victor.stinner
python-checkins at python.org
Thu Jan 6 00:01:39 CET 2011
Author: victor.stinner
Date: Thu Jan 6 00:01:38 2011
New Revision: 87778
Log:
test_imaplib: reap_server() closes the server when done
Fix a ResourceWarning(unclosed socket). Patch written by Nadeem Vawda.
Modified:
python/branches/py3k/Lib/test/test_imaplib.py
Modified: python/branches/py3k/Lib/test/test_imaplib.py
==============================================================================
--- python/branches/py3k/Lib/test/test_imaplib.py (original)
+++ python/branches/py3k/Lib/test/test_imaplib.py Thu Jan 6 00:01:38 2011
@@ -135,6 +135,7 @@
def reap_server(self, server, thread):
if verbose: print("waiting for server")
server.shutdown()
+ server.server_close()
thread.join()
if verbose: print("done")
More information about the Python-checkins
mailing list