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
Suggesting to...:
failto raise a ClinicError, andwarnto usewarnings.warn(..., ClinicWarning)This will simplify the test suite (we can use
assertRaisesRegexinstead of the current capture stdout hacks). Proof-of-concept implementation: https://github.com/Argument-Clinic/cpython/pull/2