aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/package_index.py
diff options
context:
space:
mode:
authorStefan H. Holek <stefan@epy.co.at>2012-10-09 18:38:21 +0200
committerStefan H. Holek <stefan@epy.co.at>2012-10-09 18:38:21 +0200
commit95907bcc8ddc3f87e46fdc6b9518d3c2f2a015ed (patch)
tree6f21d5814b36c1e29c3e564d1f0282cfb47adee7 /setuptools/package_index.py
parent0d407a3924d53323f81935124117c62d116b2068 (diff)
downloadexternal_python_setuptools-95907bcc8ddc3f87e46fdc6b9518d3c2f2a015ed.tar.gz
external_python_setuptools-95907bcc8ddc3f87e46fdc6b9518d3c2f2a015ed.tar.bz2
external_python_setuptools-95907bcc8ddc3f87e46fdc6b9518d3c2f2a015ed.zip
Fix cause of test failure on Mac OS X. Refs #20.
--HG-- branch : distribute extra : rebase_source : 92ba8151d6dfa3755b31139a9b5ada570183731d
Diffstat (limited to 'setuptools/package_index.py')
-rwxr-xr-xsetuptools/package_index.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index d0896feb..ffbffa99 100755
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -779,6 +779,12 @@ def open_with_auth(url):
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:
@@ -859,4 +865,4 @@ def local_open(url):
-# this line is a kludge to keep the trailing blank lines for pje's editor \ No newline at end of file
+# this line is a kludge to keep the trailing blank lines for pje's editor