summaryrefslogtreecommitdiff
path: root/pkg_resources
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-02-19 16:13:30 -0500
committerJason R. Coombs <jaraco@jaraco.com>2016-02-19 16:13:30 -0500
commit2ac4408ba8b0d6203b9556fe819f393040230aaf (patch)
treeeb9de9d8047ffb0de1abbcf7e340de3862f56a04 /pkg_resources
parenta8a49c4aab1410a11b8e75e5003b0df88875d2c9 (diff)
downloadpython-setuptools-git-2ac4408ba8b0d6203b9556fe819f393040230aaf.tar.gz
Add test capturing previously allowed usage. Ref #499.
Diffstat (limited to 'pkg_resources')
-rw-r--r--pkg_resources/tests/test_resources.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg_resources/tests/test_resources.py b/pkg_resources/tests/test_resources.py
index 7b98ae0d..a8bf35fc 100644
--- a/pkg_resources/tests/test_resources.py
+++ b/pkg_resources/tests/test_resources.py
@@ -508,6 +508,9 @@ class TestParsing:
with pytest.raises(ValueError):
Requirement.parse("#")
+ def test_local_version(self):
+ req, = parse_requirements('foo==1.0.org1')
+
def testVersionEquality(self):
def c(s1,s2):
p1, p2 = parse_version(s1),parse_version(s2)