diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-06-12 00:23:43 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2008-06-12 00:23:43 (GMT) |
commit | 01b07cdb611f98aad3bc02d04d292197f5d0cf5b (patch) | |
tree | ad86d596d5dba9d1c3ae0dbdf9f8d9f883cf932d /Lib/test/test_sys.py | |
parent | ccc63b1d747857e0a5ce1af62279e79c516c6a4c (diff) | |
download | cpython-01b07cdb611f98aad3bc02d04d292197f5d0cf5b.zip cpython-01b07cdb611f98aad3bc02d04d292197f5d0cf5b.tar.gz cpython-01b07cdb611f98aad3bc02d04d292197f5d0cf5b.tar.bz2 |
Fixed test_sys failure due to removal of the unused slots
in PyNumberMethods.
Diffstat (limited to 'Lib/test/test_sys.py')
-rw-r--r-- | Lib/test/test_sys.py | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index 6d3e1e2..6f1cf33 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -471,11 +471,16 @@ class SizeofTest(unittest.TestCase): 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 |