Commits

Stefan H. Holek committed 2bd2767

Fix cause of test failure on Mac OS X. Refs #20.

Comments (0)

Files changed (1)

setuptools/package_index.py

 
     scheme, netloc, path, params, query, frag = urlparse.urlparse(url)
 
+    # Double scheme does not raise on Mac OS X as revealed by a
+    # failing test. We would expect "nonnumeric port". Refs #20.
+    if sys.platform == 'darwin':
+        if netloc.endswith(':'):
+            raise httplib.InvalidURL("nonnumeric port: ''")
+
     if scheme in ('http', 'https'):
         auth, host = urllib2.splituser(netloc)
     else:
 
 
 
-# this line is a kludge to keep the trailing blank lines for pje's editor
+# this line is a kludge to keep the trailing blank lines for pje's editor