tests: Check that machine module exists and print SKIP if it doesn't.

modjni
Damien George 2015-06-15 23:35:15 +01:00
parent d59ca4efdb
commit f6518a7bd5
1 changed files with 7 additions and 1 deletions

View File

@ -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)