Skip to content

Rework Argument Clinic error handling #107468

@erlend-aasland

Description

@erlend-aasland

Suggesting to...:

  • Introduce ClinicError and ClinicWarning
  • Rework fail to raise a ClinicError, and warn to use warnings.warn(..., ClinicWarning)

This will simplify the test suite (we can use assertRaisesRegex instead of the current capture stdout hacks). Proof-of-concept implementation: Argument-Clinic#2

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions