aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_packageindex.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2019-01-26 20:20:12 -0500
committerJason R. Coombs <jaraco@jaraco.com>2019-01-26 20:34:00 -0500
commit5cd86987530892bfb01f68ad5f1a2b997a3d01e7 (patch)
treed4070a1eb25cc8d046122dc585b77cf9f1ab0037 /setuptools/tests/test_packageindex.py
parent050c0cbdd776ebed369de6c6d51bdc88fa16eadf (diff)
downloadexternal_python_setuptools-5cd86987530892bfb01f68ad5f1a2b997a3d01e7.tar.gz
external_python_setuptools-5cd86987530892bfb01f68ad5f1a2b997a3d01e7.tar.bz2
external_python_setuptools-5cd86987530892bfb01f68ad5f1a2b997a3d01e7.zip
Feed the hobgoblins (delint).
Diffstat (limited to 'setuptools/tests/test_packageindex.py')
-rw-r--r--setuptools/tests/test_packageindex.py17
1 files changed, 12 insertions, 5 deletions
diff --git a/setuptools/tests/test_packageindex.py b/setuptools/tests/test_packageindex.py
index 13cffb7e..ab371884 100644
--- a/setuptools/tests/test_packageindex.py
+++ b/setuptools/tests/test_packageindex.py
@@ -44,7 +44,10 @@ class TestPackageIndex:
hosts=('www.example.com',)
)
- url = 'url:%20https://svn.plone.org/svn/collective/inquant.contentmirror.plone/trunk'
+ url = (
+ 'url:%20https://svn.plone.org/svn'
+ '/collective/inquant.contentmirror.plone/trunk'
+ )
try:
v = index.open_url(url)
except Exception as v:
@@ -63,9 +66,9 @@ class TestPackageIndex:
index.opener = _urlopen
url = 'http://example.com'
try:
- v = index.open_url(url)
- except Exception as v:
- assert 'line' in str(v)
+ index.open_url(url)
+ except Exception as exc:
+ assert 'line' in str(exc)
else:
raise AssertionError('Should have raise here!')
@@ -83,7 +86,11 @@ class TestPackageIndex:
index.open_url(url)
except distutils.errors.DistutilsError as error:
msg = six.text_type(error)
- assert 'nonnumeric port' in msg or 'getaddrinfo failed' in msg or 'Name or service not known' 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")