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
commit 22345ef722
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

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)