Commit 109761ba authored by Victor Stinner's avatar Victor Stinner

test_sockserver: close servers when done

parent d218e956
......@@ -151,6 +151,7 @@ class SocketServerTest(unittest.TestCase):
if verbose: print("waiting for server")
server.shutdown()
t.join()
server.server_close()
if verbose: print("done")
def stream_examine(self, proto, addr):
......@@ -270,6 +271,7 @@ class SocketServerTest(unittest.TestCase):
s.shutdown()
for t, s in threads:
t.join()
s.server_close()
def test_main():
......
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