-
-
Notifications
You must be signed in to change notification settings - Fork 34.3k
Rework Argument Clinic error handling #107468
Copy link
Copy link
Closed as not planned
Labels
Description
Suggesting to...:
- Introduce ClinicError and ClinicWarning
- Rework
failto raise a ClinicError, andwarnto usewarnings.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
Reactions are currently unavailable