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 d9c0488 commit 3de045bCopy full SHA for 3de045b
1 file changed
Lib/test/test_struct.py
@@ -594,7 +594,7 @@ def test_Struct_reinitialization(self):
594
595
def check_sizeof(self, format_str, number_of_codes):
596
# The size of 'PyStructObject'
597
- totalsize = support.calcobjsize('2n3P1?')
+ totalsize = support.calcobjsize('2n3P?0P')
598
# The size taken up by the 'formatcode' dynamic array
599
totalsize += struct.calcsize('P3n0P') * (number_of_codes + 1)
600
support.check_sizeof(self, struct.Struct(format_str), totalsize)
0 commit comments