summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-12-19 20:49:29 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-12-19 20:49:29 (GMT)
commit9c297e43bf5cdf939ee165a2e177794dc352fa17 (patch)
treeb83ef7e90ac5633055ea20ab727975de197dcc3a /Lib/test
parent5c4064e8bd199d70eefd7ec24766957c22f1b8e8 (diff)
downloadcpython-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.py2
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):