Kaydet (Commit) 73efd621 authored tarafından Victor Stinner's avatar Victor Stinner

test_imaplib: reap_server() closes the server when done

Fix a ResourceWarning(unclosed socket). Patch written by Nadeem Vawda.
üst 33e649cf
......@@ -135,6 +135,7 @@ class BaseThreadedNetworkedTests(unittest.TestCase):
def reap_server(self, server, thread):
if verbose: print("waiting for server")
server.shutdown()
server.server_close()
thread.join()
if verbose: print("done")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment