Skip to content

Commit 22345ef

Browse files
authored
Merge pull request #4525 from blueyed/fix-test_raises_exception_looks_iterable
tests: fix test_raises_exception_looks_iterable
2 parents abb0dfc + 5ecbb02 commit 22345ef

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
@@ -190,7 +190,8 @@ class ClassLooksIterableException(Exception):
190190
pass
191191

192192
with pytest.raises(
193-
Failed, match="DID NOT RAISE <class 'raises.ClassLooksIterableException'>"
193+
Failed,
194+
match=r"DID NOT RAISE <class 'raises(\..*)*ClassLooksIterableException'>",
194195
):
195196
pytest.raises(ClassLooksIterableException, lambda: None)
196197

0 commit comments

Comments
 (0)