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

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