[Python-checkins] cpython: fix expected layout of code objects

benjamin.peterson python-checkins at python.org
Wed Sep 7 17:56:40 EDT 2016


https://hg.python.org/cpython/rev/c2212d98ef13
changeset: 103252:c2212d98ef13
user: Benjamin Peterson <benjamin at python.org>
date: Wed Sep 07 14:56:15 2016 -0700
summary:
 fix expected layout of code objects
files:
 Lib/test/test_sys.py | 6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -912,13 +912,13 @@
 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)
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /