]> granicus.if.org Git - python/commitdiff
Issue #10250: fix resource warnings in test_urllib2_localnet. Patch by Brian Brazil.
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 30 Oct 2010 17:33:22 +0000 (17:33 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 30 Oct 2010 17:33:22 +0000 (17:33 +0000)
Lib/test/test_urllib2_localnet.py

index 872b2be7bef3ec2a7e1ea856aec8959d77ec3809..9e1ce5bb9eda7316032232dd1320528251ddca95 100644 (file)
@@ -66,6 +66,7 @@ class LoopbackHttpServerThread(threading.Thread):
         self._stop_server = True
 
         self.join()
+        self.httpd.server_close()
 
     def run(self):
         self.ready.set()