update invalid-mpy test and result

This commit is contained in:
Jeff Epler 2023-08-16 09:16:15 -05:00
parent 9c91448bc2
commit 73d231c54c
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE
2 changed files with 5 additions and 6 deletions

View File

@ -1,4 +1,3 @@
mod0 RuntimeError Corrupt .mpy file mod0 ValueError incompatible .mpy file
mod1 RuntimeError Corrupt .mpy file mod1 ValueError incompatible .mpy file
mod2 ValueError Incompatible .mpy file. Please update all .mpy files. See http://adafru.it/mpy-update for more info. mod2 ValueError incompatible .mpy file
mod3 ValueError Incompatible .mpy file. Please update all .mpy files. See http://adafru.it/mpy-update for more info.

View File

@ -109,7 +109,7 @@ user_files = {
# create and mount a user filesystem # create and mount a user filesystem
uos.mount(UserFS(user_files), "/userfs") uos.mount(UserFS(user_files), "/userfs")
usys.path.append("/userfs") sys.path.append("/userfs")
# import .mpy files from the user filesystem # import .mpy files from the user filesystem
for i in range(len(user_files)): for i in range(len(user_files)):
@ -122,4 +122,4 @@ for i in range(len(user_files)):
# unmount and undo path addition # unmount and undo path addition
uos.umount("/userfs") uos.umount("/userfs")
usys.path.pop() sys.path.pop()