diff options
author | Damien George <damien.p.george@gmail.com> | 2015-06-15 23:35:15 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-06-15 23:35:15 +0100 |
commit | f6518a7bd554c87b4dcb68d1ca618babcf278c63 (patch) | |
tree | 5895d851e440b9b056e68e4ce2a97bee87ebb637 | |
parent | d59ca4efdbcf572b9f77b8e5b045c939181a3089 (diff) | |
download | micropython-f6518a7bd554c87b4dcb68d1ca618babcf278c63.tar.gz micropython-f6518a7bd554c87b4dcb68d1ca618babcf278c63.zip |
tests: Check that machine module exists and print SKIP if it doesn't.
-rw-r--r-- | tests/extmod/machine1.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/extmod/machine1.py b/tests/extmod/machine1.py index f93f79b284..e7fd40d4db 100644 --- a/tests/extmod/machine1.py +++ b/tests/extmod/machine1.py @@ -1,6 +1,12 @@ # test machine module -import machine +try: + import machine +except ImportError: + print("SKIP") + import sys + sys.exit() + import uctypes print(machine.mem8) |