]> granicus.if.org Git - python/commitdiff
bpo-31234: test_httpservers joins the server thread (#3188)
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 22 Aug 2017 16:05:07 +0000 (18:05 +0200)
committerGitHub <noreply@github.com>
Tue, 22 Aug 2017 16:05:07 +0000 (18:05 +0200)
Lib/test/test_httpservers.py

index fb4ae1928ba467948508f2a51dfe8407701b7e93..8cddcdc43843ad150300375012bbe61a1506cc2b 100644 (file)
@@ -56,6 +56,7 @@ class TestServerThread(threading.Thread):
 
     def stop(self):
         self.server.shutdown()
+        self.join()
 
 
 class BaseTestCase(unittest.TestCase):