Skip to content

Commit 71ab6d1

Browse files
committed
+1
1 parent b97670b commit 71ab6d1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/test/test_buffer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4507,7 +4507,9 @@ def test_array_alignment(self):
45074507
[0] * len(cases),
45084508
)
45094509
for case in cases:
4510-
case.append(0)
4510+
fmt = case.typecode
4511+
if struct.calcsize(fmt) <= MAX_ALIGN:
4512+
case.append(0)
45114513
# Allocated arrays
45124514
self.assertEqual(
45134515
[_testcapi.buffer_pointer_as_int(case) % align for case in cases],

0 commit comments

Comments
 (0)