Full Changelog: v0.23.2...v0.24.0
Features
-
New helper classes:
testing.RaisesGroup
andtesting.Matcher
.In preparation for changing the default of
strict_exception_groups
toTrue
, we're introducing a set of helper classes that can be used in place ofpytest.raises
in tests, to check for an expectedExceptionGroup
.
These are provisional, and only planned to be supplied until there's a good solution inpytest
. 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 usingexcept*
or catching ExceptionGroup/BaseExceptionGroup. (#2891)