Skip to content

[3.14] Exclude _testclinic_depr.c.h from c-analyzer (GH-137086) - #137089

Merged
hugovk merged 1 commit into
python:3.14from
miss-islington:backport-d5e75c0-3.14
Jul 24, 2025
Merged

[3.14] Exclude _testclinic_depr.c.h from c-analyzer (GH-137086)#137089
hugovk merged 1 commit into
python:3.14from
miss-islington:backport-d5e75c0-3.14

Conversation

@miss-islington

Copy link
Copy Markdown
Contributor

_testclinic.c mocks out PY_VERSION_HEX to 3.8 before including
_testclinic_depr.c.h to avoid the errors the preprocessor would
otherwise throw due to the deprecation feature it is testing.

Also partially revert 74e2acd:
this restores Modules/_testclinic.c to match the same file in the 3.14
branch.
(cherry picked from commit d5e75c0)

Co-authored-by: Zachary Ware zach@python.org

_testclinic.c mocks out PY_VERSION_HEX to 3.8 before including
_testclinic_depr.c.h to avoid the errors the preprocessor would
otherwise throw due to the deprecation feature it is testing.

Also partially revert 74e2acd:
this restores Modules/_testclinic.c to match the same file in the 3.14
branch.
(cherry picked from commit d5e75c0)

Co-authored-by: Zachary Ware <zach@python.org>
@zware

zware commented Jul 24, 2025

Copy link
Copy Markdown
Member

@hugovk This should clean up CI for the 3.14 branch. Please note that the commit message should be amended from what was merged into main; the "partially revert ..." bit is not true for this branch.

@hugovk
hugovk merged commit d996cb6 into python:3.14 Jul 24, 2025
51 checks passed
kumaraditya303 pushed a commit to miss-islington/cpython that referenced this pull request Sep 9, 2025
…python#137089)

Exclude _testclinic_depr.c.h from c-analyzer (pythonGH-137086)

_testclinic.c mocks out PY_VERSION_HEX to 3.8 before including
_testclinic_depr.c.h to avoid the errors the preprocessor would
otherwise throw due to the deprecation feature it is testing.

(cherry picked from commit d5e75c0)

Co-authored-by: Zachary Ware <zach@python.org>
@miss-islington
miss-islington deleted the backport-d5e75c0-3.14 branch January 2, 2026 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants