diff options
| author | Dan Halbert <halbert@adafruit.com> | 2019-06-26 20:39:50 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-26 20:39:50 -0400 |
| commit | c562b1923885d67fd349e48da841715f3a5522dd (patch) | |
| tree | 28d712c6767304b37ff09fa8abcc7176ab8b5385 /tests/import/mpy_invalid.py | |
| parent | f77abbd96095890a016ff6acc183b6de4d7ceb26 (diff) | |
| parent | fe507db45f7fa21c6de4aafb288a7f83d9903f71 (diff) | |
Validate mpy load
Diffstat (limited to 'tests/import/mpy_invalid.py')
| -rw-r--r-- | tests/import/mpy_invalid.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/import/mpy_invalid.py b/tests/import/mpy_invalid.py index 6a4e116e7..b9dd99a44 100644 --- a/tests/import/mpy_invalid.py +++ b/tests/import/mpy_invalid.py @@ -59,8 +59,8 @@ for i in range(len(user_files)): mod = 'mod%u' % i try: __import__(mod) - except ValueError as er: - print(mod, 'ValueError', er) + except Exception as e: + print(mod, type(e).__name__, e) # unmount and undo path addition uos.umount('/userfs') |
