diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-12-19 20:49:29 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-12-19 20:49:29 (GMT) |
commit | 9c297e43bf5cdf939ee165a2e177794dc352fa17 (patch) | |
tree | b83ef7e90ac5633055ea20ab727975de197dcc3a /Lib/test | |
parent | 5c4064e8bd199d70eefd7ec24766957c22f1b8e8 (diff) | |
download | cpython-9c297e43bf5cdf939ee165a2e177794dc352fa17.zip cpython-9c297e43bf5cdf939ee165a2e177794dc352fa17.tar.gz cpython-9c297e43bf5cdf939ee165a2e177794dc352fa17.tar.bz2 |
Use correct PyGC_Head size in tests for issue #25421.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_sys.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index 4f1577d..5a37537 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -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): |