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.
This commit is contained in:
Daniel Hahler 2018-12-10 06:26:23 +01:00
parent abb0dfcfa3
commit 5ecbb02ace
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)