diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-06 10:02:44 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-06 10:02:44 -0500 |
| commit | de11e9e9b57db01e029657acb1148a9fd70581b5 (patch) | |
| tree | 4f06f65f29441ca8f3e76c0ffbb659c60581e603 /pkg_resources | |
| parent | 1524a98d7e0e5344134ef51e77cfe5a04e582a8f (diff) | |
| download | python-setuptools-git-de11e9e9b57db01e029657acb1148a9fd70581b5.tar.gz | |
Refactor for clarity
Diffstat (limited to 'pkg_resources')
| -rw-r--r-- | pkg_resources/tests/test_resources.py | 5 |
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) |
