Skip to content

Commit 3de045b

Browse files
Fix format for the __sizeof__ test.
1 parent d9c0488 commit 3de045b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_struct.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ def test_Struct_reinitialization(self):
594594

595595
def check_sizeof(self, format_str, number_of_codes):
596596
# The size of 'PyStructObject'
597-
totalsize = support.calcobjsize('2n3P1?')
597+
totalsize = support.calcobjsize('2n3P?0P')
598598
# The size taken up by the 'formatcode' dynamic array
599599
totalsize += struct.calcsize('P3n0P') * (number_of_codes + 1)
600600
support.check_sizeof(self, struct.Struct(format_str), totalsize)

0 commit comments

Comments
 (0)