summaryrefslogtreecommitdiff
path: root/tests/basics/int_bytes.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2024-02-29 11:13:56 +1100
committerDamien George <damien@micropython.org>2024-06-21 16:21:33 +1000
commit038125be79569548f5ebc0a336bda587ea7d63ca (patch)
tree8d5228540cd0af8eb6b688ea3e83acdec0cd5161 /tests/basics/int_bytes.py
parenta19214d897f7891d177dc22bb8fc555f7e6b65bb (diff)
py/emitnative: Fix native async with.
The code generating the entry to the finally handler of an async-with statement was simply wrong for the case of the native emitter. Among other things the layout of the stack was incorrect. This is fixed by this commit. The setup of the async-with finally handler is now put in a dedicated emit function, for both the bytecode and native emitters to implement in their own way (the bytecode emitter is unchanged, just factored to a function). With this fix all of the async-with tests now work when using the native emitter. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/basics/int_bytes.py')
0 files changed, 0 insertions, 0 deletions