aboutsummaryrefslogtreecommitdiffstats
path: root/pkg_resources/tests/test_resources.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-01-16 06:54:00 -0500
committerJason R. Coombs <jaraco@jaraco.com>2016-01-16 06:54:00 -0500
commit8af3b6ef5b4173a0d0d6735147c98c882ae98344 (patch)
tree18ccd57b03f7e00967f59a72d9ccd13172825b55 /pkg_resources/tests/test_resources.py
parent0f590c0d72709128f32c23437fe0183386c69d1c (diff)
downloadexternal_python_setuptools-8af3b6ef5b4173a0d0d6735147c98c882ae98344.tar.gz
external_python_setuptools-8af3b6ef5b4173a0d0d6735147c98c882ae98344.tar.bz2
external_python_setuptools-8af3b6ef5b4173a0d0d6735147c98c882ae98344.zip
Always use Python 3 version of map
Diffstat (limited to 'pkg_resources/tests/test_resources.py')
-rw-r--r--pkg_resources/tests/test_resources.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg_resources/tests/test_resources.py b/pkg_resources/tests/test_resources.py
index 4241765a..84133a32 100644
--- a/pkg_resources/tests/test_resources.py
+++ b/pkg_resources/tests/test_resources.py
@@ -4,6 +4,8 @@ import tempfile
import shutil
import string
+from pkg_resources.extern.six.moves import map
+
import pytest
from pkg_resources.extern import packaging
@@ -158,7 +160,7 @@ class TestDistro:
for i in range(3):
targets = list(ws.resolve(parse_requirements("Foo"), ad))
assert targets == [Foo]
- list(map(ws.add,targets))
+ list(map(ws.add, targets))
with pytest.raises(VersionConflict):
ws.resolve(parse_requirements("Foo==0.9"), ad)
ws = WorkingSet([]) # reset