Blame SOURCES/00134-fix-COUNT_ALLOCS-failure-in-test_sys.patch

f992f7
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
f992f7
index 0dd4258..d9b3267 100644
f992f7
--- a/Lib/test/test_sys.py
f992f7
+++ b/Lib/test/test_sys.py
f992f7
@@ -769,6 +769,11 @@ class SizeofTest(unittest.TestCase):
f992f7
                   '10P'                 # PySequenceMethods
f992f7
                   '6P'                  # PyBufferProcs
f992f7
                   '2P')
23b3e9
+
23b3e9
+        # COUNT_ALLOCS adds further fields to the end of a PyTypeObject:
23b3e9
+        if hasattr(sys, 'getcounts'):
23b3e9
+            s += size('P')
23b3e9
+
23b3e9
         class newstyleclass(object):
23b3e9
             pass
23b3e9
         check(newstyleclass, s)