]> granicus.if.org Git - python/commitdiff
test_sockserver: close servers when done
authorVictor Stinner <victor.stinner@haypocalc.com>
Mon, 3 Jan 2011 14:30:39 +0000 (14:30 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Mon, 3 Jan 2011 14:30:39 +0000 (14:30 +0000)
Lib/test/test_socketserver.py

index 190780083e7cd6ef3675aa004c98b3126bf0f438..d4c3621b79001ddf50474caff32c7045f4e52ec8 100644 (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():