8a178e8
Index: distribute-0.6.27/setuptools/tests/server.py
8a178e8
===================================================================
8a178e8
--- distribute-0.6.27.orig/setuptools/tests/server.py
8a178e8
+++ distribute-0.6.27/setuptools/tests/server.py
8a178e8
@@ -1,6 +1,7 @@
8a178e8
 """Basic http server for tests to simulate PyPI or custom indexes
8a178e8
 """
8a178e8
 import urllib2
8a178e8
+import socket
8a178e8
 import sys
8a178e8
 import threading
8a178e8
 import BaseHTTPServer
8a178e8
@@ -44,7 +45,7 @@ class IndexServer(HTTPServer):
8a178e8
                 urllib2.urlopen(url, timeout=5)
8a178e8
             else:
8a178e8
                 urllib2.urlopen(url)
8a178e8
-        except urllib2.URLError:
8a178e8
+        except (urllib2.URLError, socket.timeout):
8a178e8
             # ignore any errors; all that's important is the request
8a178e8
             pass
8a178e8
         self.thread.join()