Skip to content

Commit 9642ffb

Browse files
zwaremiss-islington
authored andcommitted
Exclude _testclinic_depr.c.h from c-analyzer (GH-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. 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 <[email protected]>
1 parent b7168d2 commit 9642ffb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tools/c-analyzer/cpython/_parser.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ def clean_lines(text):
8383
Python/generated_cases.c.h
8484
Python/executor_cases.c.h
8585
Python/optimizer_cases.c.h
86+
# XXX: Throws errors if PY_VERSION_HEX is not mocked out
87+
Modules/clinic/_testclinic_depr.c.h
8688
8789
# not actually source
8890
Python/bytecodes.c

0 commit comments

Comments
 (0)