Issue #17928: Fix test_structmembers on 64-bit big-endian machines.
(_testcapi isn't Py_ssize_t-clean, the "s#" code should use an int for length)
diff --git a/Misc/NEWS b/Misc/NEWS
index 466781c..579e09c 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -97,6 +97,8 @@
Tests
-----
+- Issue #17928: Fix test_structmembers on 64-bit big-endian machines.
+
- Issue #17883: Fix buildbot testing of Tkinter on Windows.
Patch by Zachary Ware.
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index f1968e2..b0386f0 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -1813,7 +1813,7 @@
;
test_structmembers *ob;
const char *s = NULL;
- Py_ssize_t string_len = 0;
+ int string_len = 0;
ob = PyObject_New(test_structmembers, type);
if (ob == NULL)
return NULL;