Skip to content

Commit d996cb6

Browse files
[3.14] Exclude _testclinic_depr.c.h from c-analyzer (GH-137086) (#137089)
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. (cherry picked from commit d5e75c0) Co-authored-by: Zachary Ware <zach@python.org>
1 parent b7168d2 commit d996cb6

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)