summaryrefslogtreecommitdiff
path: root/tests/basics/int_big1.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/basics/int_big1.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/basics/int_big1.py')
-rw-r--r--tests/basics/int_big1.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/basics/int_big1.py b/tests/basics/int_big1.py
index 40d16c455..108e3ee5c 100644
--- a/tests/basics/int_big1.py
+++ b/tests/basics/int_big1.py
@@ -102,7 +102,10 @@ x = 4611686018427387904 # big
x = -4611686018427387904 # big
# sys.maxsize is a constant mpz, so test it's compatible with dynamic ones
-import sys
+try:
+ import usys as sys
+except ImportError:
+ import sys
print(sys.maxsize + 1 - 1 == sys.maxsize)
# test extraction of big int value via mp_obj_get_int_maybe