]>
Commit | Line | Data |
---|---|---|
4034c523 SS |
1 | diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py |
2 | index 0dd4258..d9b3267 100644 | |
3 | --- a/Lib/test/test_sys.py | |
4 | +++ b/Lib/test/test_sys.py | |
5 | @@ -769,6 +769,11 @@ class SizeofTest(unittest.TestCase): | |
6 | '10P' # PySequenceMethods | |
7 | '6P' # PyBufferProcs | |
8 | '2P') | |
48d9a6a0 MT |
9 | + |
10 | + # COUNT_ALLOCS adds further fields to the end of a PyTypeObject: | |
11 | + if hasattr(sys, 'getcounts'): | |
12 | + s += size('P') | |
13 | + | |
14 | class newstyleclass(object): | |
15 | pass | |
16 | check(newstyleclass, s) |