[Python-3000-checkins] r64157 - python/branches/py3k/Lib/test/test_sys.py
alexandre.vassalotti
python-3000-checkins at python.org
Thu Jun 12 02:23:43 CEST 2008
Author: alexandre.vassalotti
Date: Thu Jun 12 02:23:43 2008
New Revision: 64157
Log:
Fixed test_sys failure due to removal of the unused slots
in PyNumberMethods.
Modified:
python/branches/py3k/Lib/test/test_sys.py
Modified: python/branches/py3k/Lib/test/test_sys.py
==============================================================================
--- python/branches/py3k/Lib/test/test_sys.py (original)
+++ python/branches/py3k/Lib/test/test_sys.py Thu Jun 12 02:23:43 2008
@@ -471,11 +471,16 @@
pass
# type (PyTypeObject + PyNumberMethods + PyMappingMethods +
# PySequenceMethods + PyBufferProcs)
- self.check_sizeof(class_newstyle, h +\
- p + 2*l + 15*p + l + 4*p + l + 9*p + l + 11*p +\
- self.align(4) +\
- 16*p + self.align(i) + 20*p +\
- 10*p + 3*p + 2*p + 2*p);
+ self.check_sizeof(class_newstyle, h +
+ # PyTypeObject
+ p + 2*l + 15*p + l + 4*p + l + 9*p + l + 11*p +
+ self.align(4) +
+ # PyNumberMethods
+ 16*p + self.align(i) + 17*p +
+ 3*p + # PyMappingMethods
+ 10*p + # PySequenceMethods
+ 2*p + # PyBufferProcs
+ 2*p) # *ht_name and *ht_slots
def test_specialtypes(self):
i = self.i
More information about the Python-3000-checkins
mailing list