1c94c1a
diff -up Python-3.3.0b1/Lib/test/test_sys.py.fix-COUNT_ALLOCS-failure-in-test_sys Python-3.3.0b1/Lib/test/test_sys.py
1c94c1a
--- Python-3.3.0b1/Lib/test/test_sys.py.fix-COUNT_ALLOCS-failure-in-test_sys	2012-06-26 16:19:48.000000000 -0400
1c94c1a
+++ Python-3.3.0b1/Lib/test/test_sys.py	2012-07-20 13:44:23.050740172 -0400
1c94c1a
@@ -869,6 +869,9 @@ class SizeofTest(unittest.TestCase):
1c94c1a
         s = size(vh + 'P2P15Pl4PP9PP11PI') + size('34P 3P 10P 2P 4P')
1c94c1a
         # Separate block for PyDictKeysObject with 4 entries
1c94c1a
         s += size("PPPP") + 4*size("PPP")
5080ffc
+        # COUNT_ALLOCS adds a further 3 Py_ssize_t and 2 pointers:
5080ffc
+        if hasattr(sys, 'getcounts'):
5080ffc
+            s += size('3P2P')
5080ffc
         # class
5080ffc
         class newstyleclass(object): pass
1c94c1a
         check(newstyleclass, s)