test_sockserver: close servers when done

This commit is contained in:
Victor Stinner 2011-01-03 14:30:39 +00:00
parent d218e956d2
commit 109761ba07
1 changed files with 2 additions and 0 deletions

View File

@ -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():