Commits

Lennart Regebro committed 8d053cd Draft

Issue 315:

  • Participants
  • Parent commits 9498c59

Comments (0)

Files changed (1)

File setuptools/tests/server.py

 """
 import urllib2
 import sys
+import time
 import threading
 import BaseHTTPServer
 from BaseHTTPServer import HTTPServer
     def stop(self):
         "Stop the server"
 
+        # Let the server finish the last request adn wait for a new one.
+        time.sleep(0.1)
+
         # self.shutdown is not supported on python < 2.6, so just
         #  set _run to false, and make a request, causing it to
         #  terminate.