summaryrefslogtreecommitdiff
path: root/pkg_resources
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-01-04 14:28:07 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-01-04 14:28:07 -0500
commit0b7d713f812e7d84f143bd84f0734ae77169bb68 (patch)
treebe2057ca11e5e7f703fce57d18117f32c1cddd01 /pkg_resources
parentcdb9797a1107afd4d7baf021b2af84946d349a2a (diff)
downloadpython-setuptools-git-0b7d713f812e7d84f143bd84f0734ae77169bb68.tar.gz
Fix test failure on Python 2
Diffstat (limited to 'pkg_resources')
-rw-r--r--pkg_resources/tests/test_resources.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg_resources/tests/test_resources.py b/pkg_resources/tests/test_resources.py
index 7ba65786..f252ddff 100644
--- a/pkg_resources/tests/test_resources.py
+++ b/pkg_resources/tests/test_resources.py
@@ -245,6 +245,8 @@ class TestWorkingSet:
ws.resolve(parse_requirements("Foo\nBar\n"))
msg = "Baz 1.0 is installed but Baz==2.0 is required by {'Bar'}"
+ if pkg_resources.PY2:
+ msg = msg.replace("{'Bar'}", "set(['Bar'])")
assert vc.value.report() == msg