diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-01-03 14:30:39 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-01-03 14:30:39 (GMT) |
commit | 109761ba076842a9ab4343f083d46658829067b9 (patch) | |
tree | f7577e43817566c3554b05198fc7fc2fa5c0ec2c /Lib/test | |
parent | d218e956d2e56830bbc7d1eccb99f5ce7c4f1b0e (diff) | |
download | cpython-109761ba076842a9ab4343f083d46658829067b9.zip cpython-109761ba076842a9ab4343f083d46658829067b9.tar.gz cpython-109761ba076842a9ab4343f083d46658829067b9.tar.bz2 |
test_sockserver: close servers when done
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_socketserver.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_socketserver.py b/Lib/test/test_socketserver.py index 1907800..d4c3621 100644 --- a/Lib/test/test_socketserver.py +++ b/Lib/test/test_socketserver.py @@ -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(): |