From 73d231c54c8bf6eb09d9d840198591dd3228d3b3 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Wed, 16 Aug 2023 09:16:15 -0500 Subject: [PATCH] update invalid-mpy test and result --- tests/micropython/import_mpy_invalid.py.exp | 7 +++---- tests/micropython/import_mpy_native.py | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/micropython/import_mpy_invalid.py.exp b/tests/micropython/import_mpy_invalid.py.exp index 432287028e..1727ea1cea 100644 --- a/tests/micropython/import_mpy_invalid.py.exp +++ b/tests/micropython/import_mpy_invalid.py.exp @@ -1,4 +1,3 @@ -mod0 RuntimeError Corrupt .mpy file -mod1 RuntimeError Corrupt .mpy file -mod2 ValueError Incompatible .mpy file. Please update all .mpy files. See http://adafru.it/mpy-update for more info. -mod3 ValueError Incompatible .mpy file. Please update all .mpy files. See http://adafru.it/mpy-update for more info. +mod0 ValueError incompatible .mpy file +mod1 ValueError incompatible .mpy file +mod2 ValueError incompatible .mpy file diff --git a/tests/micropython/import_mpy_native.py b/tests/micropython/import_mpy_native.py index 24ea0a17e3..69e1c40798 100644 --- a/tests/micropython/import_mpy_native.py +++ b/tests/micropython/import_mpy_native.py @@ -109,7 +109,7 @@ user_files = { # create and mount a user filesystem uos.mount(UserFS(user_files), "/userfs") -usys.path.append("/userfs") +sys.path.append("/userfs") # import .mpy files from the user filesystem for i in range(len(user_files)): @@ -122,4 +122,4 @@ for i in range(len(user_files)): # unmount and undo path addition uos.umount("/userfs") -usys.path.pop() +sys.path.pop()