summaryrefslogtreecommitdiff
path: root/tests/run-natmodtests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-natmodtests.py')
-rwxr-xr-xtests/run-natmodtests.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/run-natmodtests.py b/tests/run-natmodtests.py
index 16bb46922..9fe970a6d 100755
--- a/tests/run-natmodtests.py
+++ b/tests/run-natmodtests.py
@@ -22,16 +22,16 @@ NATMOD_EXAMPLE_DIR = "../examples/natmod/"
TEST_MAPPINGS = {
"btree": "btree/btree_$(ARCH).mpy",
"framebuf": "framebuf/framebuf_$(ARCH).mpy",
- "uheapq": "uheapq/uheapq_$(ARCH).mpy",
- "urandom": "urandom/urandom_$(ARCH).mpy",
- "ure": "ure/ure_$(ARCH).mpy",
- "uzlib": "uzlib/uzlib_$(ARCH).mpy",
+ "heapq": "heapq/heapq_$(ARCH).mpy",
+ "random": "random/random_$(ARCH).mpy",
+ "re": "re/re_$(ARCH).mpy",
+ "zlib": "zlib/zlib_$(ARCH).mpy",
}
# Code to allow a target MicroPython to import an .mpy from RAM
injected_import_hook_code = """\
-import usys, uos, uio
-class __File(uio.IOBase):
+import sys, os, io
+class __File(io.IOBase):
def __init__(self):
self.off = 0
def ioctl(self, request, arg):
@@ -52,9 +52,9 @@ class __FS:
raise OSError(-2) # ENOENT
def open(self, path, mode):
return __File()
-uos.mount(__FS(), '/__remote')
-uos.chdir('/__remote')
-usys.modules['{}'] = __import__('__injected')
+os.mount(__FS(), '/__remote')
+os.chdir('/__remote')
+sys.modules['{}'] = __import__('__injected')
"""