summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-01-02 16:45:16 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-01-02 16:45:16 -0500
commitef428d7278002b558541300fb7b7a96c8dbac830 (patch)
treef774b13c900952fb69c4d4572f1a56fd013f4c08
parent1f953c4c2f954cc04df15a008cbd32e7bb1dfe04 (diff)
downloadpython-setuptools-git-ef428d7278002b558541300fb7b7a96c8dbac830.tar.gz
Move tests to be adjacent with other parsing tests.
-rw-r--r--setuptools/tests/test_resources.py5
-rw-r--r--tests/test_pkg_resources.py8
2 files changed, 5 insertions, 8 deletions
diff --git a/setuptools/tests/test_resources.py b/setuptools/tests/test_resources.py
index ecd45bca..94370ff1 100644
--- a/setuptools/tests/test_resources.py
+++ b/setuptools/tests/test_resources.py
@@ -250,6 +250,11 @@ class TestEntryPoints:
assert ep.attrs == ("foo",)
assert ep.extras == ()
+ # plus in the name
+ spec = "html+mako = mako.ext.pygmentplugin:MakoHtmlLexer"
+ ep = EntryPoint.parse(spec)
+ assert ep.name == 'html+mako'
+
def testRejects(self):
for ep in [
"foo", "x=1=2", "x=a:b:c", "q=x/na", "fez=pish:tush-z", "x=f[a]>2",
diff --git a/tests/test_pkg_resources.py b/tests/test_pkg_resources.py
index 4dfd14b3..564d7cec 100644
--- a/tests/test_pkg_resources.py
+++ b/tests/test_pkg_resources.py
@@ -109,11 +109,3 @@ class TestIndependence:
)
cmd = [sys.executable, '-c', '; '.join(lines)]
subprocess.check_call(cmd)
-
-
-class TestEntryPoint:
- """Tests that ensure EntryPoint behaviour doesn't regress."""
- def test_accepts_old_entry_points(self):
- """https://bitbucket.org/pypa/setuptools/issue/323/install-issues-with-102"""
- entry_point_string = 'html+mako = mako.ext.pygmentplugin:MakoHtmlLexer'
- pkg_resources.EntryPoint.parse(entry_point_string)