Skip to content

Lint rule for pytest.raises(ExceptionGroup) #430

Closed

Description

@jakkdl

Almost all instances of pytest.raises(ExceptionGroup) or pytest.raises(BaseExceptionGroup) would be better of rewritten to use pytest.RaisesGroup. It's possible this should be an optional rule as it's fully possible to write perfectly fine code with pytest.raises(ExceptionGroup).

Activity

  1. added a commit that references this issue on Feb 18, 2026
    2bde844
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions