summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-01-03 14:30:39 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-01-03 14:30:39 (GMT)
commit109761ba076842a9ab4343f083d46658829067b9 (patch)
treef7577e43817566c3554b05198fc7fc2fa5c0ec2c /Lib
parentd218e956d2e56830bbc7d1eccb99f5ce7c4f1b0e (diff)
downloadcpython-109761ba076842a9ab4343f083d46658829067b9.zip
cpython-109761ba076842a9ab4343f083d46658829067b9.tar.gz
cpython-109761ba076842a9ab4343f083d46658829067b9.tar.bz2
test_sockserver: close servers when done
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_socketserver.py2
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():