]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-95065: Argument Clinic: Add functional tests of deprecated positionals (#107768)
authorErlend E. Aasland <erlend@python.org>
Thu, 10 Aug 2023 07:19:05 +0000 (09:19 +0200)
committerGitHub <noreply@github.com>
Thu, 10 Aug 2023 07:19:05 +0000 (07:19 +0000)
commit39ef93edb9802dccdb6555d4209ac2e60875a011
treee0255a6b5f48b47b9fccb7fc3ba1c651baacfb8c
parent4845b9712f2c187743344eca43fa1fb896bddfd6
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>
Lib/test/clinic.test.c
Lib/test/test_clinic.py
Modules/_testclinic.c
Modules/clinic/_testclinic_depr_star.c.h [new file with mode: 0644]
Tools/c-analyzer/cpython/globals-to-fix.tsv