Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 670 Bytes

104.feature.rst

File metadata and controls

10 lines (9 loc) · 670 Bytes

If a test raises an ExceptionGroup (or nested ExceptionGroups) with only a single 'leaf' exception from pytest.xfail() or pytest.skip(), we now unwrap it to have the desired effect on Pytest. ExceptionGroups with two or more leaf exceptions, even of the same type, are not changed and will be treated as ordinary test failures.

See pytest-dev/pytest#9680 for design discussion. This feature is particularly useful if you've enabled the new strict_exception_groups=True option.