Skip to content
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

gh-120674: protect multi-line macro expansions in Modules/_testbuffer.c and Modules/_testcapimodule.c #120675

Merged
merged 5 commits into from
Jun 18, 2024

Conversation

picnixz
Copy link
Member

@picnixz picnixz commented Jun 18, 2024

(skip news is needed for this one)

Modules/_testcapimodule.c Outdated Show resolved Hide resolved
Modules/_testcapimodule.c Outdated Show resolved Hide resolved
Modules/_testcapimodule.c Outdated Show resolved Hide resolved
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if you fix a minor consistency issue :-)

Modules/_testbuffer.c Outdated Show resolved Hide resolved
@vstinner vstinner enabled auto-merge (squash) June 18, 2024 11:42
@vstinner vstinner disabled auto-merge June 18, 2024 11:42
@vstinner vstinner enabled auto-merge (squash) June 18, 2024 11:42
@vstinner
Copy link
Member

LGTM if you fix a minor consistency issue :-)

I applied my minor suggestion and enabled automerge.

@picnixz
Copy link
Member Author

picnixz commented Jun 18, 2024

Thank you for the consistency nitpick! Some parts of the code align the '\' and others don't. In this PR, I tried not to align the '\' except when they are used for breaking the same expression (e.g., a function call) (but I tried to reduce the diff as much as possible). So thank you!

By the way, in the future, I don't mind people comitting directly onto my branch if I don't reply directly.

@vstinner vstinner merged commit 7c5da94 into python:main Jun 18, 2024
35 checks passed
@picnixz picnixz deleted the do-while-in-test-modules branch June 18, 2024 12:15
picnixz added a commit to picnixz/cpython that referenced this pull request Jun 19, 2024
mrahtz pushed a commit to mrahtz/cpython that referenced this pull request Jun 30, 2024
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request Jul 11, 2024
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants