diff options
Diffstat (limited to 'tests/micropython/emg_exc.py')
| -rw-r--r-- | tests/micropython/emg_exc.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/micropython/emg_exc.py b/tests/micropython/emg_exc.py index b8df94b07..9a09956c8 100644 --- a/tests/micropython/emg_exc.py +++ b/tests/micropython/emg_exc.py @@ -1,10 +1,10 @@ # test that emergency exceptions work import micropython -import usys +import sys try: - import uio + import io except ImportError: print("SKIP") raise SystemExit @@ -25,8 +25,8 @@ def f(): micropython.heap_unlock() # print the exception - buf = uio.StringIO() - usys.print_exception(exc, buf) + buf = io.StringIO() + sys.print_exception(exc, buf) for l in buf.getvalue().split("\n"): if l.startswith(" File "): print(l.split('"')[2]) |
