mirror of
https://github.com/python/cpython
synced 2026-09-29 11:35:29 +03:00
gh-95065: Argument Clinic: Add functional tests of deprecated positionals (#107768)
Move the "deprecated positinal" tests from clinic.test.c to _testclinic.c. Mock PY_VERSION_HEX in order to prevent generated compiler warnings/errors to trigger. Put clinic code for deprecated positionals in Modules/clinic/_testclinic_depr_star.c.h for easy inspection of the generated code. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
4845b9712f
commit
39ef93edb9
5 changed files with 1338 additions and 1162 deletions
|
|
@ -322,6 +322,8 @@ Modules/_testcapi/vectorcall.c - MethodDescriptorBase_Type -
|
|||
Modules/_testcapi/vectorcall.c - MethodDescriptorDerived_Type -
|
||||
Modules/_testcapi/vectorcall.c - MethodDescriptorNopGet_Type -
|
||||
Modules/_testcapi/vectorcall.c - MethodDescriptor2_Type -
|
||||
Modules/_testclinic.c - DeprStarInit -
|
||||
Modules/_testclinic.c - DeprStarNew -
|
||||
|
||||
|
||||
##################################
|
||||
|
|
|
|||
|
Can't render this file because it has a wrong number of fields in line 4.
|
Loading…
Add table
Add a link
Reference in a new issue