summaryrefslogtreecommitdiff
path: root/tests/run-tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-tests.py')
-rwxr-xr-xtests/run-tests.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/tests/run-tests.py b/tests/run-tests.py
index 498db8b40..4964ff49f 100755
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -56,8 +56,8 @@ os.environ["PYTHONIOENCODING"] = "utf-8"
# 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):
@@ -80,8 +80,8 @@ class __FS:
raise OSError(-2) # ENOENT
def open(self, path, mode):
return __File()
-uos.mount(__FS(), '/__vfstest')
-uos.chdir('/__vfstest')
+os.mount(__FS(), '/__vfstest')
+os.chdir('/__vfstest')
__import__('__injected_test')
"""
@@ -455,9 +455,9 @@ def run_tests(pyb, tests, args, result_dir, num_threads=1):
if output == b"TypeError\n":
skip_revops = True
- # Check if uio module exists, and skip such tests if it doesn't
- output = run_feature_check(pyb, args, base_path, "uio_module.py")
- if output != b"uio\n":
+ # Check if io module exists, and skip such tests if it doesn't
+ output = run_feature_check(pyb, args, base_path, "io_module.py")
+ if output != b"io\n":
skip_io_module = True
# Check if fstring feature is enabled, and skip such tests if it doesn't
@@ -512,9 +512,9 @@ def run_tests(pyb, tests, args, result_dir, num_threads=1):
skip_tests.add("extmod/uctypes_le_float.py")
skip_tests.add("extmod/uctypes_native_float.py")
skip_tests.add("extmod/uctypes_sizeof_float.py")
- skip_tests.add("extmod/ujson_dumps_float.py")
- skip_tests.add("extmod/ujson_loads_float.py")
- skip_tests.add("extmod/urandom_extra_float.py")
+ skip_tests.add("extmod/json_dumps_float.py")
+ skip_tests.add("extmod/json_loads_float.py")
+ skip_tests.add("extmod/random_extra_float.py")
skip_tests.add("misc/rge_sm.py")
if upy_float_precision < 32:
skip_tests.add(
@@ -544,7 +544,7 @@ def run_tests(pyb, tests, args, result_dir, num_threads=1):
if not has_coverage:
skip_tests.add("cmdline/cmd_parsetree.py")
skip_tests.add("cmdline/repl_sys_ps1_ps2.py")
- skip_tests.add("extmod/ussl_poll.py")
+ skip_tests.add("extmod/ssl_poll.py")
# Some tests shouldn't be run on a PC
if args.target == "unix":
@@ -568,9 +568,9 @@ def run_tests(pyb, tests, args, result_dir, num_threads=1):
}
) # requires uctypes
skip_tests.add("extmod/zlibd_decompress.py") # requires zlib
- skip_tests.add("extmod/uheapq1.py") # uheapq not supported by WiPy
- skip_tests.add("extmod/urandom_basic.py") # requires urandom
- skip_tests.add("extmod/urandom_extra.py") # requires urandom
+ skip_tests.add("extmod/heapq1.py") # heapq not supported by WiPy
+ skip_tests.add("extmod/random_basic.py") # requires random
+ skip_tests.add("extmod/random_extra.py") # requires random
elif args.target == "esp8266":
skip_tests.add("misc/rge_sm.py") # too large
elif args.target == "minimal":
@@ -582,7 +582,7 @@ def run_tests(pyb, tests, args, result_dir, num_threads=1):
skip_tests.add("micropython/opt_level.py") # don't assume line numbers are stored
elif args.target == "nrf":
skip_tests.add("basics/memoryview1.py") # no item assignment for memoryview
- skip_tests.add("extmod/urandom_basic.py") # unimplemented: urandom.seed
+ skip_tests.add("extmod/random_basic.py") # unimplemented: random.seed
skip_tests.add("micropython/opt_level.py") # no support for line numbers
skip_tests.add("misc/non_compliant.py") # no item assignment for bytearray
for t in tests:
@@ -590,7 +590,7 @@ def run_tests(pyb, tests, args, result_dir, num_threads=1):
skip_tests.add(t)
elif args.target == "renesas-ra":
skip_tests.add(
- "extmod/utime_time_ns.py"
+ "extmod/time_time_ns.py"
) # RA fsp rtc function doesn't support nano sec info
elif args.target == "qemu-arm":
skip_tests.add("misc/print_exception.py") # requires sys stdfiles