Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
skip Zd in test_array_alignment()
  • Loading branch information
skirpichev committed May 5, 2026
commit 2e1c01bc1165d6b08e1a663ba8c0c067748d76f8
4 changes: 2 additions & 2 deletions Lib/test/test_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4495,8 +4495,8 @@ def test_bytearray_alignment(self):
def test_array_alignment(self):
# gh-140557: pointer alignment of buffers including empty allocation
# should match the maximum array alignment.
align = max(struct.calcsize(fmt) for fmt in ARRAY)
cases = [array.array(fmt) for fmt in ARRAY]
align = max(struct.calcsize(fmt) for fmt in ARRAY if fmt != 'Zd')
cases = [array.array(fmt) for fmt in ARRAY if fmt != 'Zd']
# Empty arrays
self.assertEqual(
[_testcapi.buffer_pointer_as_int(case) % align for case in cases],
Expand Down
Loading