Commit c04985bc authored by Jason R. Coombs's avatar Jason R. Coombs

Build requires using map

parent 40fe6f76
......@@ -31,8 +31,8 @@ class TestDistInfo:
@pytest.mark.importorskip('ast')
def test_conditional_dependencies(self):
requires = [pkg_resources.Requirement.parse('splort==4'),
pkg_resources.Requirement.parse('quux>=1.1')]
specs = 'splort==4', 'quux>=1.1'
requires = list(map(pkg_resources.Requirement.parse, specs))
for d in pkg_resources.find_distributions(self.tmpdir):
assert d.requires() == requires[:1]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment