Commit 9dc629f1 authored by Antoine Pitrou's avatar Antoine Pitrou

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)
parent edb18abd
...@@ -97,6 +97,8 @@ Library ...@@ -97,6 +97,8 @@ Library
Tests Tests
----- -----
- Issue #17928: Fix test_structmembers on 64-bit big-endian machines.
- Issue #17883: Fix buildbot testing of Tkinter on Windows. - Issue #17883: Fix buildbot testing of Tkinter on Windows.
Patch by Zachary Ware. Patch by Zachary Ware.
......
...@@ -1813,7 +1813,7 @@ test_structmembers_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) ...@@ -1813,7 +1813,7 @@ test_structmembers_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
; ;
test_structmembers *ob; test_structmembers *ob;
const char *s = NULL; const char *s = NULL;
Py_ssize_t string_len = 0; int string_len = 0;
ob = PyObject_New(test_structmembers, type); ob = PyObject_New(test_structmembers, type);
if (ob == NULL) if (ob == NULL)
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment