diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-07-31 04:30:48 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-07-31 04:30:48 +0300 |
commit | bc3912980afd48515f992273a555a64fc714c8a1 (patch) | |
tree | 96f0ba903de0ae0e3e8c07ef4bd8a089f5c75619 | |
parent | eb0e3bab1ed5aa09e491641f427a5d637fe688bd (diff) | |
download | micropython-bc3912980afd48515f992273a555a64fc714c8a1.tar.gz micropython-bc3912980afd48515f992273a555a64fc714c8a1.zip |
tests/machine1: Revamp to work with unix port (which has "umachine").
-rw-r--r-- | tests/extmod/machine1.py | 5 |
1 files changed, 4 insertions, 1 deletions
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 |