Skip to content

Commit 5ecbb02

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 abb0dfc commit 5ecbb02

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)