From 40ad8f1666b265dafc7844d765f45cfae4b6299f Mon Sep 17 00:00:00 2001 From: stijn Date: Thu, 18 Jun 2020 11:19:14 +0200 Subject: 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". --- tests/basics/sys_exit.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/basics/sys_exit.py') diff --git a/tests/basics/sys_exit.py b/tests/basics/sys_exit.py index b1f71549d..4d640ae60 100644 --- a/tests/basics/sys_exit.py +++ b/tests/basics/sys_exit.py @@ -1,6 +1,9 @@ # test sys module's exit function -import sys +try: + import usys as sys +except ImportError: + import sys try: sys.exit -- cgit v1.2.3