Skip to content

gh-146615: Fix format specifiers in test cextensions#146618

Draft
sunmy2019 wants to merge 1 commit intopython:mainfrom
sunmy2019:gh-146615-1
Draft

gh-146615: Fix format specifiers in test cextensions#146618
sunmy2019 wants to merge 1 commit intopython:mainfrom
sunmy2019:gh-146615-1

Conversation

@sunmy2019
Copy link
Copy Markdown
Member

@sunmy2019 sunmy2019 commented Mar 30, 2026

if (result_1 != expected) {
PyErr_Format(PyExc_AssertionError,
"Incorrect result_1: '%s' in '%s' (offset=%zd)",
"Incorrect result_1: '%s' in '%s' (offset=%d)",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe change the type of offset to Py_ssize_t?

if (result_2 != expected) {
PyErr_Format(PyExc_AssertionError,
"Incorrect result_2: '%s' in '%s' (offset=%zd)",
"Incorrect result_2: '%s' in '%s' (offset=%d)",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As above.

@picnixz
Copy link
Copy Markdown
Member

picnixz commented Mar 30, 2026

See #146620 (comment) for the rationale of skip news

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.

3 participants