Skip to content

Lint rule for pytest.raises(ExceptionGroup) #430

@jakkdl

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).

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