We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8d4d36 commit 537a152Copy full SHA for 537a152
testing/python/raises.py
@@ -197,7 +197,9 @@ class ClassLooksIterableException(Exception):
197
pass
198
199
with pytest.raises(
200
- Failed, match="DID NOT RAISE <class 'raises.ClassLooksIterableException'>"
+ # NOTE with xdist: "DID NOT RAISE <class 'raises.TestRaises.test_raises_exception_looks_iterable.<locals>.ClassLooksIterableException'>" ?! # noqa: E501
201
+ Failed,
202
+ match=r"DID NOT RAISE <class 'raises(\..*)*ClassLooksIterableException'>",
203
):
204
pytest.raises(ClassLooksIterableException, lambda: None)
205
0 commit comments