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:
parent
abb0dfcfa3
commit
5ecbb02ace
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue