Skip to content

v0.24.0

Compare
Choose a tag to compare
@A5rocks A5rocks released this 10 Jan 03:33

Full Changelog: v0.23.2...v0.24.0

Features

  • New helper classes: testing.RaisesGroup and testing.Matcher.

    In preparation for changing the default of strict_exception_groups to True, we're introducing a set of helper classes that can be used in place of pytest.raises in tests, to check for an expected ExceptionGroup.
    These are provisional, and only planned to be supplied until there's a good solution in pytest. See pytest-dev/pytest#11538 (#2785)

Deprecations and removals

  • MultiError has been fully removed, and all relevant trio functions now raise ExceptionGroups instead. This should not affect end users that have transitioned to using except* or catching ExceptionGroup/BaseExceptionGroup. (#2891)