tests: Replace umodule with module everywhere.

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
This commit is contained in:
Jim Mussared
2022-08-18 16:57:45 +10:00
parent 5e50975a6d
commit 4216bc7d13
295 changed files with 1006 additions and 1428 deletions

View File

@@ -1,10 +1,10 @@
# test that we can generate a traceback without allocating
import micropython
import usys
import sys
try:
import uio
import io
except ImportError:
print("SKIP")
raise SystemExit
@@ -32,8 +32,8 @@ def test():
test()
# print the exception that was raised
buf = uio.StringIO()
usys.print_exception(global_exc, buf)
buf = io.StringIO()
sys.print_exception(global_exc, buf)
for l in buf.getvalue().split("\n"):
# uPy on pyboard prints <stdin> as file, so remove filename.
if l.startswith(" File "):