-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Exclude _testclinic_depr.c.h from c-analyzer #137086
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude _testclinic_depr.c.h from c-analyzer #137086
Conversation
_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.
This restores Modules/_testclinic.c to match the same file in the 3.14 branch.
Partially revert 74e2acd This restores Modules/_testclinic.c to match the same file in the 3.14 branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can confirm this passes make check-c-globals
locally. Thanks for fixing this!
Ah, looks like you also need to update all the error messages in test_clinic :) |
Partially revert 74e2acd This restores Modules/_testclinic.c to match the same file in the 3.14 branch.
Partially revert 74e2acd This restores Modules/_testclinic.c to match the same file in the 3.14 branch.
🤦♂️ done. |
I clicked re-run failed jobs because the failures in https://github.com/python/cpython/actions/runs/16506792861/job/46679447457?pr=137086 look like a flake? (Maybe this should be reported as an issue) |
Thanks @zware for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
_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>
GH-137089 is a backport of this pull request to the 3.14 branch. |
) 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>
Also revert
_testclinic.c
to match 3.14 as a test to make sure this will fix CI for the 3.14 branch.