(self, format_str, number_of_codes)
| 588 | s.__init__('ii') |
| 589 | |
| 590 | def check_sizeof(self, format_str, number_of_codes): |
| 591 | # The size of 'PyStructObject' |
| 592 | totalsize = support.calcobjsize('2n3P') |
| 593 | # The size taken up by the 'formatcode' dynamic array |
| 594 | totalsize += struct.calcsize('P3n0P') * (number_of_codes + 1) |
| 595 | support.check_sizeof(self, struct.Struct(format_str), totalsize) |
| 596 | |
| 597 | @support.cpython_only |
| 598 | def test__sizeof__(self): |
no outgoing calls
no test coverage detected