diff options
author | Damien George <damien@micropython.org> | 2024-02-16 16:55:39 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-02-20 10:56:24 +1100 |
commit | 0c7ccb8807581f3654f70ee9ea86d3ca017f7ea2 (patch) | |
tree | 4d03320a76e91b7d9bae0757fa6a72bca5bd44ad /tests | |
parent | 6d403eb6972b7f6137838d89dba1ae3f76846c8b (diff) | |
download | micropython-0c7ccb8807581f3654f70ee9ea86d3ca017f7ea2.tar.gz micropython-0c7ccb8807581f3654f70ee9ea86d3ca017f7ea2.zip |
py/objfun: Support __name__ on native functions and generators.
This is now easy to support, since the first machine-word of a native
function tells how to find the prelude, from which the function name can be
extracted in the same way as for bytecode.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/run-tests.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/run-tests.py b/tests/run-tests.py index ba66eced41..70279d379d 100755 --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -643,9 +643,7 @@ def run_tests(pyb, tests, args, result_dir, num_threads=1): # Some tests are known to fail with native emitter # Remove them from the below when they work if args.emit == "native": - skip_tests.update( - {"basics/%s.py" % t for t in "gen_yield_from_close generator_name".split()} - ) # require raise_varargs, generator name + 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 @@ -656,7 +654,6 @@ def run_tests(pyb, tests, args, result_dir, num_threads=1): skip_tests.add("basics/del_deref.py") # requires checking for unbound local skip_tests.add("basics/del_local.py") # requires checking for unbound local skip_tests.add("basics/exception_chain.py") # raise from is not supported - skip_tests.add("basics/fun_name.py") # requires proper names for native functions skip_tests.add("basics/scope_implicit.py") # requires checking for unbound local skip_tests.add("basics/sys_tracebacklimit.py") # requires traceback info skip_tests.add("basics/try_finally_return2.py") # requires raise_varargs |