8000 Fix tests · losingrose/circuitpython@6d2072f · GitHub
[go: up one dir, main page]

Skip to content

Commit 6d2072f

Browse files
committed
Fix tests
1 parent 2494bfd commit 6d2072f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/import/mpy_invalid.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ def open(self, path, mode):
5959
mod = 'mod%u' % i
6060
try:
6161
__import__(mod)
62-
except ValueError as er:
63-
print(mod, 'ValueError', er)
62+
except Exception as e:
63+
print(mod, type(e).__name__, e)
6464

6565
# unmount and undo path addition
6666
uos.umount('/userfs')

tests/import/mpy_invalid.py.exp

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

0 commit comments

Comments
 (0)
0