Skip to content

gh-127572: Fix test_structmembers initialization #127577

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 1 commit into from
Dec 4, 2024

Conversation

colesbury
Copy link
Contributor

@colesbury colesbury commented Dec 3, 2024

The 'C' format code expects an int as a destination (not a char). This led to test failures on big-endian platforms like s390x. Use the 'c' format code, which expects a char as the destination (but requires a Python byte objects instead of a str).

The 'C' format code expects an `int` as a destination (not a `char`).
This led to test failures on big-endian platforms like s390x. Use the
'c' format code, which expects a `char` as the destination (but requires
a Python byte objects instead of a str).
@colesbury colesbury added the tests Tests in the Lib/test dir label Dec 3, 2024
@colesbury colesbury requested a review from vstinner December 3, 2024 19:13
@colesbury
Copy link
Contributor Author

!buildbot s390x

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @colesbury for commit 0a547aa 🤖

The command will test the builders whose names match following regular expression: s390x

The builders matched are:

  • s390x RHEL9 LTO PR
  • s390x RHEL8 Refleaks PR
  • s390x RHEL8 LTO + PGO PR
  • s390x RHEL8 PR
  • s390x RHEL8 LTO PR
  • s390x RHEL9 Refleaks PR
  • s390x RHEL9 LTO + PGO PR
  • s390x RHEL9 PR

@encukou encukou merged commit 6fc6436 into python:main Dec 4, 2024
57 checks passed
@encukou
Copy link
Member

encukou commented Dec 4, 2024

Thank you!

@dpdani
Copy link
Contributor

dpdani commented Dec 4, 2024

thanks!

srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Jan 8, 2025
…7577)

pythongh-127572: Fix `test_structmembers` initialization.

The 'C' format code expects an `int` as a destination (not a `char`).
This led to test failures on big-endian platforms like s390x. Use the
'c' format code, which expects a `char` as the destination (but requires
a Python byte objects instead of a str).
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.

4 participants