summaryrefslogtreecommitdiffstatshomepage
path: root/tests/run-tests.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/run-tests.py
parenta19214d897f7891d177dc22bb8fc555f7e6b65bb (diff)
downloadmicropython-038125be79569548f5ebc0a336bda587ea7d63ca.tar.gz
micropython-038125be79569548f5ebc0a336bda587ea7d63ca.zip
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/run-tests.py')
-rwxr-xr-xtests/run-tests.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/run-tests.py b/tests/run-tests.py
index a551f35c67..a6caff7bbd 100755
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -718,9 +718,6 @@ def run_tests(pyb, tests, args, result_dir, num_threads=1):
if args.emit == "native":
skip_tests.add("basics/gen_yield_from_close.py") # require raise_varargs
skip_tests.update(
- {"basics/async_%s.py" % t for t in "with with2 with_break with_return".split()}
- ) # require async_with
- skip_tests.update(
{"basics/%s.py" % t for t in "try_reraise try_reraise2".split()}
) # require raise_varargs
skip_tests.add("basics/annotate_var.py") # requires checking for unbound local
@@ -731,7 +728,6 @@ def run_tests(pyb, tests, args, result_dir, num_threads=1):
skip_tests.add("basics/sys_tracebacklimit.py") # requires traceback info
skip_tests.add("basics/try_finally_return2.py") # requires raise_varargs
skip_tests.add("basics/unboundlocal.py") # requires checking for unbound local
- skip_tests.add("extmod/asyncio_lock.py") # requires async with
skip_tests.add("misc/features.py") # requires raise_varargs
skip_tests.add(
"misc/print_exception.py"