Skip to content

gh-127572: Fix test_structmembers initialization - #127577

Merged
encukou merged 1 commit into
python:mainfrom
colesbury:gh-127572-structseq
Dec 4, 2024
Merged

gh-127572: Fix test_structmembers initialization#127577
encukou merged 1 commit into
python:mainfrom
colesbury:gh-127572-structseq

Conversation

@colesbury

@colesburycolesbury commented Dec 3, 2024

Copy link
Copy Markdown
Contributor

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).
@colesburycolesbury added the tests Tests in the Lib/test dir label Dec 3, 2024
@colesbury

Copy link
Copy Markdown
ContributorAuthor

!buildbot s390x

@bedevere-bot

Copy link
Copy Markdown

🤖 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

Copy link
Copy Markdown
Member

Thank you!

@dpdani

Copy link
Copy Markdown
Contributor

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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip newstestsTests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@colesbury@bedevere-bot@encukou@dpdani