Skip to content

Commit 73d231c

Browse files
committed
update invalid-mpy test and result
1 parent 9c91448 commit 73d231c

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
mod0 RuntimeError Corrupt .mpy file
2-
mod1 RuntimeError Corrupt .mpy file
3-
mod2 ValueError Incompatible .mpy file. Please update all .mpy files. See http://adafru.it/mpy-update for more info.
4-
mod3 ValueError Incompatible .mpy file. Please update all .mpy files. See http://adafru.it/mpy-update for more info.
1+
mod0 ValueError incompatible .mpy file
2+
mod1 ValueError incompatible .mpy file
3+
mod2 ValueError incompatible .mpy file

tests/micropython/import_mpy_native.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def open(self, path, mode):
109109

110110
# create and mount a user filesystem
111111
uos.mount(UserFS(user_files), "/userfs")
112-
usys.path.append("/userfs")
112+
sys.path.append("/userfs")
113113

114114
# import .mpy files from the user filesystem
115115
for i in range(len(user_files)):
@@ -122,4 +122,4 @@ def open(self, path, mode):
122122

123123
# unmount and undo path addition
124124
uos.umount("/userfs")
125-
usys.path.pop()
125+
sys.path.pop()

0 commit comments

Comments
 (0)