Skip to content

Commit 537a152

Browse files
committed
fixup! fixup! Derive outcomes.exit.Exception from SystemExit instead of KeyboardInterrupt
1 parent f8d4d36 commit 537a152

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

testing/python/raises.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@ class ClassLooksIterableException(Exception):
197197
pass
198198

199199
with pytest.raises(
200-
Failed, match="DID NOT RAISE <class 'raises.ClassLooksIterableException'>"
200+
# 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'>",
201203
):
202204
pytest.raises(ClassLooksIterableException, lambda: None)
203205

0 commit comments

Comments
 (0)