]>
Commit | Line | Data |
---|---|---|
48d9a6a0 MT |
1 | --- Python-2.7.2/Lib/test/test_sys.py.mark-tests-that-fail-in-rpmbuild 2011-09-08 18:02:31.627362039 -0400 |
2 | +++ Python-2.7.2/Lib/test/test_sys.py 2011-09-08 18:15:29.450308851 -0400 | |
3 | @@ -734,6 +734,11 @@ class SizeofTest(unittest.TestCase): | |
4 | # (PyTypeObject + PyNumberMethods + PyMappingMethods + | |
5 | # PySequenceMethods + PyBufferProcs) | |
6 | s = vsize('P2P15Pl4PP9PP11PI') + struct.calcsize('41P 10P 3P 6P') | |
7 | + | |
8 | + # COUNT_ALLOCS adds further fields to the end of a PyTypeObject: | |
9 | + if hasattr(sys, 'getcounts'): | |
10 | + s += size('P') | |
11 | + | |
12 | class newstyleclass(object): | |
13 | pass | |
14 | check(newstyleclass, s) |