Issue #300 new

Invalid URLs can fail with other error messages

Toshio Kuratomi
created an issue

Running the unittests for distribute under python-2.7.3 on Fedora 16 and 18 fails in:

File "/srv/git/python-setuptools/distribute-0.6.28/setuptools/tests/test_packageindex.py", line 76, in test_bad_url_double_scheme assert 'nonnumeric port' in msg or 'getaddrinfo failed' in msg

On this OS/distribution, the msg returned in the exception is 'Name or service not known'. Perhaps the message is coming from the system's libc?

I've worked around the issue with the attached patch which just adds the msg we get in Fedora to the expected list.

Comments (0)

  1. Log in to comment