summaryrefslogtreecommitdiff
path: root/tests/micropython/heapalloc_traceback.py
diff options
context:
space:
mode:
authorstijn <stijn@ignitron.net>2020-06-18 11:19:14 +0200
committerDamien George <damien@micropython.org>2020-09-04 00:10:24 +1000
commit40ad8f1666b265dafc7844d765f45cfae4b6299f (patch)
treed073a4b4f791f53d1a73c47d029bf2b49f041d5e /tests/micropython/heapalloc_traceback.py
parentb0932fcf2e2f9a81abf7737ed4b2573bd9ad4a49 (diff)
all: Rename "sys" module to "usys".
This is consistent with the other 'micro' modules and allows implementing additional features in Python via e.g. micropython-lib's sys. Note this is a breaking change (not backwards compatible) for ports which do not enable weak links, as "import sys" must now be replaced with "import usys".
Diffstat (limited to 'tests/micropython/heapalloc_traceback.py')
-rw-r--r--tests/micropython/heapalloc_traceback.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/micropython/heapalloc_traceback.py b/tests/micropython/heapalloc_traceback.py
index eabd09388..09a2ad2c1 100644
--- a/tests/micropython/heapalloc_traceback.py
+++ b/tests/micropython/heapalloc_traceback.py
@@ -1,7 +1,7 @@
# test that we can generate a traceback without allocating
import micropython
-import sys
+import usys
try:
import uio
@@ -33,7 +33,7 @@ test()
# print the exception that was raised
buf = uio.StringIO()
-sys.print_exception(global_exc, buf)
+usys.print_exception(global_exc, buf)
for l in buf.getvalue().split("\n"):
# uPy on pyboard prints <stdin> as file, so remove filename.
if l.startswith(" File "):