summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-09-07 21:56:15 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-09-07 21:56:15 (GMT)
commit46d3a595fda146dc3f70abbb526a080f1103d664 (patch)
tree96b1e96803c4c848e6526ec0bf024c82c060a85b
parent840ef8f84b4b629b319f1cb960495be0fb8df4b6 (diff)
downloadcpython-46d3a595fda146dc3f70abbb526a080f1103d664.zip
cpython-46d3a595fda146dc3f70abbb526a080f1103d664.tar.gz
cpython-46d3a595fda146dc3f70abbb526a080f1103d664.tar.bz2
fix expected layout of code objects
-rw-r--r--Lib/test/test_sys.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
index 3131f36..332acf8 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -912,13 +912,13 @@ class SizeofTest(unittest.TestCase):
return inner
check(get_cell().__closure__[0], size('P'))
# code
- check(get_cell().__code__, size('5i9Pi3P'))
- check(get_cell.__code__, size('5i9Pi3P'))
+ check(get_cell().__code__, size('6i13P'))
+ check(get_cell.__code__, size('6i13P'))
def get_cell2(x):
def inner():
return x
return inner
- check(get_cell2.__code__, size('5i9Pi3P') + 1)
+ check(get_cell2.__code__, size('6i13P') + 1)
# complex
check(complex(0,1), size('2d'))
# method_descriptor (descriptor object)