fix expected layout of code objects
This commit is contained in:
parent
840ef8f84b
commit
46d3a595fd
|
@ -912,13 +912,13 @@ class SizeofTest(unittest.TestCase):
|
||||||
return inner
|
return inner
|
||||||
check(get_cell().__closure__[0], size('P'))
|
check(get_cell().__closure__[0], size('P'))
|
||||||
# code
|
# code
|
||||||
check(get_cell().__code__, size('5i9Pi3P'))
|
check(get_cell().__code__, size('6i13P'))
|
||||||
check(get_cell.__code__, size('5i9Pi3P'))
|
check(get_cell.__code__, size('6i13P'))
|
||||||
def get_cell2(x):
|
def get_cell2(x):
|
||||||
def inner():
|
def inner():
|
||||||
return x
|
return x
|
||||||
return inner
|
return inner
|
||||||
check(get_cell2.__code__, size('5i9Pi3P') + 1)
|
check(get_cell2.__code__, size('6i13P') + 1)
|
||||||
# complex
|
# complex
|
||||||
check(complex(0,1), size('2d'))
|
check(complex(0,1), size('2d'))
|
||||||
# method_descriptor (descriptor object)
|
# method_descriptor (descriptor object)
|
||||||
|
|
Loading…
Reference in New Issue