aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2015-01-02 15:31:47 -0600
committerIan Cordasco <graffatcolmingov@gmail.com>2015-01-02 15:31:47 -0600
commitfb1b7680cee8b4e751b29f6d46a6fcedb51e4e31 (patch)
tree1fd57b17f37a0cd87832cfb7027368917d16aa52 /tests
parent0c8f0cb4bfe39fd7840c0242dd059269c0266445 (diff)
downloadexternal_python_setuptools-fb1b7680cee8b4e751b29f6d46a6fcedb51e4e31.tar.gz
external_python_setuptools-fb1b7680cee8b4e751b29f6d46a6fcedb51e4e31.tar.bz2
external_python_setuptools-fb1b7680cee8b4e751b29f6d46a6fcedb51e4e31.zip
Fix regression in entry-point name parsing
See #323 for more details.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_pkg_resources.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_pkg_resources.py b/tests/test_pkg_resources.py
index 564d7cec..4dfd14b3 100644
--- a/tests/test_pkg_resources.py
+++ b/tests/test_pkg_resources.py
@@ -109,3 +109,11 @@ 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)