Skip to content

Rework Argument Clinic error handling #107468

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: https://github.com/Argument-Clinic/cpython/pull/2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions