镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Rework Argument Clinic error handling #107468

Closed as not planned
Closed as not planned

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

  1. erlend-aasland commented on Oct 12, 2023

    @erlend-aasland
    ContributorAuthor

    This was addressed in #107467, #104683. Closing as outdated.

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