python-setuptools/distribute-different-exception-message.patch

15 lines
717 B
Diff
Raw Normal View History

Index: distribute-0.6.28/setuptools/tests/test_packageindex.py
2012-06-08 19:49:50 +00:00
===================================================================
--- 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
2012-06-08 19:49:50 +00:00
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")