aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/tests/test_dist_info.py
diff options
context:
space:
mode:
authorSteve Kowalik <steven@wedontsleep.org>2016-03-01 16:07:42 +1100
committerSteve Kowalik <steven@wedontsleep.org>2016-03-01 16:07:42 +1100
commit0ed33b7a4db605e4608f56d6bdb5efe81762b4cb (patch)
tree935aa03bf0cf0c2a5d8a5fb0f33b737bf3f9557c /setuptools/tests/test_dist_info.py
parenta46fd8327e5c13b45fcc92322b4fe00a76f307da (diff)
downloadexternal_python_setuptools-0ed33b7a4db605e4608f56d6bdb5efe81762b4cb.tar.gz
external_python_setuptools-0ed33b7a4db605e4608f56d6bdb5efe81762b4cb.tar.bz2
external_python_setuptools-0ed33b7a4db605e4608f56d6bdb5efe81762b4cb.zip
Shift requirement parsing inside Requirement
Diffstat (limited to 'setuptools/tests/test_dist_info.py')
-rw-r--r--setuptools/tests/test_dist_info.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/setuptools/tests/test_dist_info.py b/setuptools/tests/test_dist_info.py
index 002968a3..9f226a55 100644
--- a/setuptools/tests/test_dist_info.py
+++ b/setuptools/tests/test_dist_info.py
@@ -34,7 +34,9 @@ class TestDistInfo:
for d in pkg_resources.find_distributions(self.tmpdir):
assert d.requires() == requires[:1]
- assert d.requires(extras=('baz',)) == requires
+ assert d.requires(extras=('baz',)) == [
+ requires[0],
+ pkg_resources.Requirement.parse('quux>=1.1;extra=="baz"')]
assert d.extras == ['baz']
metadata_template = DALS("""