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

Add another assertion on the exception.

parent db8efa2a
......@@ -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
......
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