python-setuptools/distribute-different-exception-message.patch
Toshio Kuratomi a4d5040e19 New upstream release:
- python-3.3 fixes
  - honor umask when setuptools is used to install other modules
2012-07-23 07:57:30 -07:00

15 lines
717 B
Diff

Index: distribute-0.6.28/setuptools/tests/test_packageindex.py
===================================================================
--- distribute-0.6.28.orig/setuptools/tests/test_packageindex.py
+++ distribute-0.6.28/setuptools/tests/test_packageindex.py
@@ -73,7 +73,8 @@ class TestPackageIndex(unittest.TestCase
index.open_url(url)
except distutils.errors.DistutilsError, error:
msg = unicode(error)
- assert 'nonnumeric port' in msg or 'getaddrinfo failed' in msg
+ assert 'nonnumeric port' in msg or 'getaddrinfo failed' in msg\
+ or 'Name or service not known' in msg
return
raise RuntimeError("Did not raise")