From 154d602b6e92cd5781d87291fa0e7455a14af334 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 14 May 2024 15:18:48 +1000 Subject: [PATCH] webassembly/mpconfigport: Enable importing of .mpy files. Signed-off-by: Damien George --- ports/webassembly/mpconfigport.h | 1 + tests/run-tests.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/webassembly/mpconfigport.h b/ports/webassembly/mpconfigport.h index ae5dfa6fa..ece7868fb 100644 --- a/ports/webassembly/mpconfigport.h +++ b/ports/webassembly/mpconfigport.h @@ -39,6 +39,7 @@ #endif #define MICROPY_ALLOC_PATH_MAX (256) +#define MICROPY_PERSISTENT_CODE_LOAD (1) #define MICROPY_COMP_ALLOW_TOP_LEVEL_AWAIT (1) #define MICROPY_READER_VFS (MICROPY_VFS) #define MICROPY_ENABLE_GC (1) diff --git a/tests/run-tests.py b/tests/run-tests.py index 8acdcd2b3..1e1bd160a 100755 --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -702,7 +702,6 @@ def run_tests(pyb, tests, args, result_dir, num_threads=1): skip_tests.add("micropython/emg_exc.py") skip_tests.add("micropython/extreme_exc.py") skip_tests.add("micropython/heapalloc_exc_compressed_emg_exc.py") - skip_tests.add("micropython/import_mpy_invalid.py") # Some tests are known to fail on 64-bit machines if pyb is None and platform.architecture()[0] == "64bit":