diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-01 16:38:53 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-01-01 16:38:53 -0500 |
commit | c04985bc9b29c2e181697b10059e99fc77ef532d (patch) | |
tree | 59ca958942a1bbe2ea2b22409286b775fb589e6c | |
parent | 40fe6f7674b00bb6a8ed81185e938c105845a040 (diff) | |
download | external_python_setuptools-c04985bc9b29c2e181697b10059e99fc77ef532d.tar.gz external_python_setuptools-c04985bc9b29c2e181697b10059e99fc77ef532d.tar.bz2 external_python_setuptools-c04985bc9b29c2e181697b10059e99fc77ef532d.zip |
Build requires using map
-rw-r--r-- | setuptools/tests/test_dist_info.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/tests/test_dist_info.py b/setuptools/tests/test_dist_info.py index 7d1247b3..eab17335 100644 --- a/setuptools/tests/test_dist_info.py +++ b/setuptools/tests/test_dist_info.py @@ -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] |