summaryrefslogtreecommitdiffstats
path: root/Tools/c-analyzer
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend@python.org>2023-08-10 07:19:05 (GMT)
committerGitHub <noreply@github.com>2023-08-10 07:19:05 (GMT)
commit39ef93edb9802dccdb6555d4209ac2e60875a011 (patch)
treee0255a6b5f48b47b9fccb7fc3ba1c651baacfb8c /Tools/c-analyzer
parent4845b9712f2c187743344eca43fa1fb896bddfd6 (diff)
downloadcpython-39ef93edb9802dccdb6555d4209ac2e60875a011.zip
cpython-39ef93edb9802dccdb6555d4209ac2e60875a011.tar.gz
cpython-39ef93edb9802dccdb6555d4209ac2e60875a011.tar.bz2
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>
Diffstat (limited to 'Tools/c-analyzer')
-rw-r--r--Tools/c-analyzer/cpython/globals-to-fix.tsv2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tools/c-analyzer/cpython/globals-to-fix.tsv b/Tools/c-analyzer/cpython/globals-to-fix.tsv
index dedcb31..28bd2a4 100644
--- a/Tools/c-analyzer/cpython/globals-to-fix.tsv
+++ b/Tools/c-analyzer/cpython/globals-to-fix.tsv
@@ -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 -
##################################