]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-127572: Fix `test_structmembers` initialization (GH-127577)
authorSam Gross <colesbury@gmail.com>
Wed, 4 Dec 2024 08:58:22 +0000 (08:58 +0000)
committerGitHub <noreply@github.com>
Wed, 4 Dec 2024 08:58:22 +0000 (09:58 +0100)
commit6fc643674983e27ec5cc312f2e83468050d1d364
treede56560ca1b685e2eb0e4a2c93e5e923dfaf7f38
parent7f882c88cfda486947974cb82c20a1ae7047edfc
gh-127572: Fix `test_structmembers` initialization (GH-127577)

gh-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).
Lib/test/test_capi/test_structmembers.py
Modules/_testcapi/structmember.c