mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
test_sockserver: close servers when done
This commit is contained in:
parent
d218e956d2
commit
109761ba07
1 changed files with 2 additions and 0 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue