2016-07-17 20:28:26 +00:00
|
|
|
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
|
|
|
|
index 0dd4258..d9b3267 100644
|
|
|
|
--- a/Lib/test/test_sys.py
|
|
|
|
+++ b/Lib/test/test_sys.py
|
|
|
|
@@ -769,6 +769,11 @@ class SizeofTest(unittest.TestCase):
|
|
|
|
'10P' # PySequenceMethods
|
|
|
|
'6P' # PyBufferProcs
|
|
|
|
'2P')
|
2011-09-10 11:55:07 +00:00
|
|
|
+
|
|
|
|
+ # COUNT_ALLOCS adds further fields to the end of a PyTypeObject:
|
|
|
|
+ if hasattr(sys, 'getcounts'):
|
Updated to Python 2.7.4.
- Refreshed patches: 0 (config), 7 (sqlite encoding), 16 (rpath in config),
55 (systemtap), 111 (no static lib), 112 (debug build), 113 (more
configuration flags), 130 (add extension to python config), 134 (fix
COUNT_ALLOCS in test_sys), 146 (haslib FIPS), 147 (add debug malloc stats),
153 (fix gdb test noise), 157 (uid, gid overflow - fixed upstream, just
keeping few more downstream tests), 165 (crypt module salt backport),
175 (fix configure Wformat), 5000 (regenerated autotooling patch)
- Dropped patches: 101 (lib64 regex; merged upstream), 171 (exception on
missing /dev/urandom; merged upstream), 172 (poll for multiprocessing socket
connection; merged upstream)
2013-04-09 08:54:58 +00:00
|
|
|
+ s += size('P')
|
2011-09-10 11:55:07 +00:00
|
|
|
+
|
|
|
|
class newstyleclass(object):
|
|
|
|
pass
|
|
|
|
check(newstyleclass, s)
|