Skip to content

Commit 539d3dc

Browse files
committed
Merge branch 'fix-test_raises_exception_looks_iterable' into merge-master
2 parents 0db5ccb + 5ecbb02 commit 539d3dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testing/python/raises.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ class ClassLooksIterableException(Exception):
197197
pass
198198

199199
with pytest.raises(
200-
Failed, match="DID NOT RAISE <class 'raises.ClassLooksIterableException'>"
200+
Failed,
201+
match=r"DID NOT RAISE <class 'raises(\..*)*ClassLooksIterableException'>",
201202
):
202203
pytest.raises(ClassLooksIterableException, lambda: None)
203204

0 commit comments

Comments
 (0)