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

866e92
--- Python-2.7.2/Lib/test/test_sys.py.mark-tests-that-fail-in-rpmbuild	2011-09-08 18:02:31.627362039 -0400
866e92
+++ Python-2.7.2/Lib/test/test_sys.py	2011-09-08 18:15:29.450308851 -0400
866e92
@@ -734,6 +734,11 @@ class SizeofTest(unittest.TestCase):
866e92
         # (PyTypeObject + PyNumberMethods +  PyMappingMethods +
866e92
         #  PySequenceMethods + PyBufferProcs)
43e7c4
         s = vsize('P2P15Pl4PP9PP11PI') + struct.calcsize('41P 10P 3P 6P')
866e92
+
866e92
+        # COUNT_ALLOCS adds further fields to the end of a PyTypeObject:
866e92
+        if hasattr(sys, 'getcounts'):
43e7c4
+            s += size('P')
866e92
+
866e92
         class newstyleclass(object):
866e92
             pass
866e92
         check(newstyleclass, s)