diff options
author | stijn <stijn@ignitron.net> | 2020-06-18 11:19:14 +0200 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2020-09-04 00:10:24 +1000 |
commit | 40ad8f1666b265dafc7844d765f45cfae4b6299f (patch) | |
tree | d073a4b4f791f53d1a73c47d029bf2b49f041d5e /tests/micropython/import_mpy_invalid.py | |
parent | b0932fcf2e2f9a81abf7737ed4b2573bd9ad4a49 (diff) |
all: Rename "sys" module to "usys".
This is consistent with the other 'micro' modules and allows implementing
additional features in Python via e.g. micropython-lib's sys.
Note this is a breaking change (not backwards compatible) for ports which
do not enable weak links, as "import sys" must now be replaced with
"import usys".
Diffstat (limited to 'tests/micropython/import_mpy_invalid.py')
-rw-r--r-- | tests/micropython/import_mpy_invalid.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/micropython/import_mpy_invalid.py b/tests/micropython/import_mpy_invalid.py index 00973fe3f..02fd4b125 100644 --- a/tests/micropython/import_mpy_invalid.py +++ b/tests/micropython/import_mpy_invalid.py @@ -1,7 +1,7 @@ # test importing of invalid .mpy files try: - import sys, uio, uos + import usys, uio, uos uio.IOBase uos.mount @@ -54,7 +54,7 @@ user_files = { # create and mount a user filesystem uos.mount(UserFS(user_files), "/userfs") -sys.path.append("/userfs") +usys.path.append("/userfs") # import .mpy files from the user filesystem for i in range(len(user_files)): @@ -66,4 +66,4 @@ for i in range(len(user_files)): # unmount and undo path addition uos.umount("/userfs") -sys.path.pop() +usys.path.pop() |