Merge pull request #4525 from blueyed/fix-test_raises_exception_looks_iterable

tests: fix test_raises_exception_looks_iterable
This commit is contained in:
Bruno Oliveira
2018-12-10 15:29:18 -02:00
committed by GitHub

View File

@@ -190,7 +190,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)