https://github.com/python/cpython/commit/d996cb6700ebc93b6b5f4dbe0a7e31875aa861f9
commit: d996cb6700ebc93b6b5f4dbe0a7e31875aa861f9
branch: 3.14
author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
committer: hugovk <1324225+hug...@users.noreply.github.com>
date: 2025-07-25T00:36:11+03:00
summary:

[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 d5e75c07682864e9d265e11f5e4730147e7d4842)

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

files:
M Tools/c-analyzer/cpython/_parser.py

diff --git a/Tools/c-analyzer/cpython/_parser.py 
b/Tools/c-analyzer/cpython/_parser.py
index cfbf0d14348499..1e754040eaf1cc 100644
--- a/Tools/c-analyzer/cpython/_parser.py
+++ b/Tools/c-analyzer/cpython/_parser.py
@@ -83,6 +83,8 @@ def clean_lines(text):
 Python/generated_cases.c.h
 Python/executor_cases.c.h
 Python/optimizer_cases.c.h
+# XXX: Throws errors if PY_VERSION_HEX is not mocked out
+Modules/clinic/_testclinic_depr.c.h
 
 # not actually source
 Python/bytecodes.c

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: arch...@mail-archive.com

Reply via email to