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

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