Commit de11e9e9 authored by Jason R. Coombs's avatar Jason R. Coombs

Refactor for clarity

parent 1524a98d
...@@ -296,9 +296,8 @@ class TestEntryPoints: ...@@ -296,9 +296,8 @@ class TestEntryPoints:
assert ep.name == 'html+mako' assert ep.name == 'html+mako'
def testRejects(self): def testRejects(self):
for ep in [ specs = "foo", "x=a:b:c", "q=x/na", "fez=pish:tush-z", "x=f[a]>2"
"foo", "x=a:b:c", "q=x/na", "fez=pish:tush-z", "x=f[a]>2", for ep in specs:
]:
try: EntryPoint.parse(ep) try: EntryPoint.parse(ep)
except ValueError: pass except ValueError: pass
else: raise AssertionError("Should've been bad", ep) else: raise AssertionError("Should've been bad", ep)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment