Merge branch 'fix-test_raises_exception_looks_iterable' into merge-master

This commit is contained in:
Daniel Hahler 2018-12-10 06:30:36 +01:00
commit 539d3dc34d
1 changed files with 2 additions and 1 deletions

View File

@ -197,7 +197,8 @@ class TestRaises(object):
pass
with pytest.raises(
Failed, match="DID NOT RAISE <class 'raises.ClassLooksIterableException'>"
Failed,
match=r"DID NOT RAISE <class 'raises(\..*)*ClassLooksIterableException'>",
):
pytest.raises(ClassLooksIterableException, lambda: None)