We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b97670b commit 71ab6d1Copy full SHA for 71ab6d1
1 file changed
Lib/test/test_buffer.py
@@ -4507,7 +4507,9 @@ def test_array_alignment(self):
4507
[0] * len(cases),
4508
)
4509
for case in cases:
4510
- case.append(0)
+ fmt = case.typecode
4511
+ if struct.calcsize(fmt) <= MAX_ALIGN:
4512
+ case.append(0)
4513
# Allocated arrays
4514
self.assertEqual(
4515
[_testcapi.buffer_pointer_as_int(case) % align for case in cases],
0 commit comments