summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkg_resources/tests/test_resources.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg_resources/tests/test_resources.py b/pkg_resources/tests/test_resources.py
index fbb9db62..cf16bf03 100644
--- a/pkg_resources/tests/test_resources.py
+++ b/pkg_resources/tests/test_resources.py
@@ -172,9 +172,12 @@ class TestDistro:
# Activation list now includes resolved dependency
assert list(ws.resolve(parse_requirements("Foo[bar]"), ad)) ==[Foo,Baz]
# Requests for conflicting versions produce VersionConflict
- with pytest.raises(VersionConflict):
+ with pytest.raises(VersionConflict) as vc:
ws.resolve(parse_requirements("Foo==1.2\nFoo!=1.2"), ad)
+ msg = 'Foo 0.9 is installed but Foo==1.2 is required by []'
+ assert str(vc).endswith(msg)
+
def testDistroDependsOptions(self):
d = self.distRequires("""
Twisted>=1.5