From bc3912980afd48515f992273a555a64fc714c8a1 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 31 Jul 2016 04:30:48 +0300 Subject: [PATCH] tests/machine1: Revamp to work with unix port (which has "umachine"). --- tests/extmod/machine1.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/extmod/machine1.py b/tests/extmod/machine1.py index af4dacd03a..433a180376 100644 --- a/tests/extmod/machine1.py +++ b/tests/extmod/machine1.py @@ -1,7 +1,10 @@ # test machine module try: - import machine + try: + import umachine as machine + except ImportError: + import machine except ImportError: print("SKIP") import sys