summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-04-24 01:52:28 +0100
committerDamien George <damien.p.george@gmail.com>2015-04-24 01:52:28 +0100
commit8c1d23a0e20da2903f363448e8042e5d08caabe7 (patch)
tree0d7713088c7ebec74030b8d1f4e02dcb4d484138 /tests
parentede0f3ab3dfcc4ab1a5799b312395703bf942517 (diff)
downloadmicropython-8c1d23a0e20da2903f363448e8042e5d08caabe7.tar.gz
micropython-8c1d23a0e20da2903f363448e8042e5d08caabe7.zip
py: Modify bytecode "with" behaviour so it doesn't use any heap.
Before this patch a "with" block needed to create a bound method object on the heap for the __exit__ call. Now it doesn't because we use load_method instead of load_attr, and save the method+self on the stack.
Diffstat (limited to 'tests')
-rw-r--r--tests/cmdline/cmd_showbc.py.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cmdline/cmd_showbc.py.exp b/tests/cmdline/cmd_showbc.py.exp
index a7088894e7..48bf628aff 100644
--- a/tests/cmdline/cmd_showbc.py.exp
+++ b/tests/cmdline/cmd_showbc.py.exp
@@ -29,7 +29,7 @@ Raw bytecode (code_info_size=\\d\+, bytecode_size=\\d\+):
########
\.\+5b
arg names:
-(N_STATE 25)
+(N_STATE 22)
(N_EXC_STACK 2)
(INIT_CELL 14)
(INIT_CELL 15)