Skip to content

Commit 7ad3fc5

Browse files
committed
tests: fix test_raises_exception_looks_iterable
Started to fail on py37-xdist between https://travis-ci.org/pytest-dev/pytest/jobs/465498973 and https://travis-ci.org/pytest-dev/pytest/jobs/465792343, but could not find a diff in versions (from the tox header), and both commits failed locally.
1 parent 0db5ccb commit 7ad3fc5

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)