Skip to content

replace trio.testing.RaisesGroup with pytest.RaisesGroup #3326

@jakkdl

Description

@jakkdl

pytest 8.4 released RaisesGroup, and it's already better than trio.testing.RaisesGroup with more informative error messages.
I think we can get away with simply aliasing trio.testing.RaisesGroup to pytest.RaisesGroup and trio.testing.Matcher to pytest.RaisesExc, maybe with a short period where we raise a DeprecationWarning if somebody accesses them without pytest available.

We could also start raising warnings straight away for accessing them, given that there's not much reason for keeping them around.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions