Skip to content

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

Merged
merged 5 commits into from
Jul 24, 2025

Conversation

zware
Copy link
Member

@zware zware commented Jul 24, 2025

Also revert _testclinic.c to match 3.14 as a test to make sure this will fix CI for the 3.14 branch.

zware added 2 commits July 24, 2025 14:04
_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.
Copy link
Member

@emmatyping emmatyping left a 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!

@emmatyping
Copy link
Member

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.
@zware zware requested a review from erlend-aasland as a code owner July 24, 2025 20:03
Partially revert 74e2acd

This restores Modules/_testclinic.c to match the same file in the 3.14
branch.
@zware
Copy link
Member Author

zware commented Jul 24, 2025

🤦‍♂️ done.

@emmatyping
Copy link
Member

emmatyping commented Jul 24, 2025

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)

@zware zware merged commit d5e75c0 into python:main Jul 24, 2025
71 of 73 checks passed
@zware zware deleted the exclude_testclinic_depr_from_c-analyzer branch July 24, 2025 20:50
@miss-islington-app
Copy link

Thanks @zware for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 24, 2025
_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>
@bedevere-app
Copy link

bedevere-app bot commented Jul 24, 2025

GH-137089 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Jul 24, 2025
hugovk pushed a commit that referenced this pull request Jul 24, 2025
)

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>
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.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy