Kaydet (Commit) 9c297e43 authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka

Use correct PyGC_Head size in tests for issue #25421.

üst 5c4064e8
......@@ -1115,7 +1115,7 @@ class SizeofTest(unittest.TestCase):
def check_slots(self, obj, base, extra):
expected = sys.getsizeof(base) + struct.calcsize(extra)
if gc.is_tracked(obj) and not gc.is_tracked(base):
expected += struct.calcsize('2Pn') # PyGC_Head
expected += self.gc_headsize
self.assertEqual(sys.getsizeof(obj), expected)
def test_slots(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment