summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-01-06 10:02:44 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-01-06 10:02:44 -0500
commitde11e9e9b57db01e029657acb1148a9fd70581b5 (patch)
tree4f06f65f29441ca8f3e76c0ffbb659c60581e603
parent1524a98d7e0e5344134ef51e77cfe5a04e582a8f (diff)
downloadpython-setuptools-git-de11e9e9b57db01e029657acb1148a9fd70581b5.tar.gz
Refactor for clarity
-rw-r--r--pkg_resources/tests/test_resources.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg_resources/tests/test_resources.py b/pkg_resources/tests/test_resources.py
index 00ba0cf5..36cb6482 100644
--- a/pkg_resources/tests/test_resources.py
+++ b/pkg_resources/tests/test_resources.py
@@ -296,9 +296,8 @@ class TestEntryPoints:
assert ep.name == 'html+mako'
def testRejects(self):
- for ep in [
- "foo", "x=a:b:c", "q=x/na", "fez=pish:tush-z", "x=f[a]>2",
- ]:
+ specs = "foo", "x=a:b:c", "q=x/na", "fez=pish:tush-z", "x=f[a]>2"
+ for ep in specs:
try: EntryPoint.parse(ep)
except ValueError: pass
else: raise AssertionError("Should've been bad", ep)