5080ffc
diff -up Python-3.2b2/Lib/test/test_sys.py.fix-test-sys-COUNT_ALLOCS Python-3.2b2/Lib/test/test_sys.py
5080ffc
--- Python-3.2b2/Lib/test/test_sys.py.fix-test-sys-COUNT_ALLOCS	2010-12-28 20:52:43.236310184 -0500
5080ffc
+++ Python-3.2b2/Lib/test/test_sys.py	2010-12-28 20:58:09.164184094 -0500
5080ffc
@@ -817,6 +817,9 @@ class SizeofTest(unittest.TestCase):
5080ffc
         # (PyTypeObject + PyNumberMethods + PyMappingMethods +
5080ffc
         #  PySequenceMethods + PyBufferProcs)
5080ffc
         s = size(vh + 'P2P15Pl4PP9PP11PI') + size('16Pi17P 3P 10P 2P 2P')
5080ffc
+        # COUNT_ALLOCS adds a further 3 Py_ssize_t and 2 pointers:
5080ffc
+        if hasattr(sys, 'getcounts'):
5080ffc
+            s += size('3P2P')
5080ffc
         check(int, s)
5080ffc
         # class
5080ffc
         class newstyleclass(object): pass