ExceptionGroup
ergonomics in pytest.param(..., marks=xfail(raises=...))
#12504
Labels
topic: parametrize
related to @pytest.mark.parametrize
type: enhancement
new feature or API change, should be merged into features branch
Suppose you have a parameterized test, some params of which are expected to raise (e.g.)
IndexError
:If your test is async though, you'll actually raise an
ExceptionGroup(..., [IndexError])
(maybe with even more nesting), so the tests will still fail. Can we make this more ergonomic? What would a parametrize-awareRaisesGroup
-like thing look like?See also #11538 and #11671.
The text was updated successfully, but these errors were encountered: