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