tests: Check that machine module exists and print SKIP if it doesn't.
This commit is contained in:
parent
d59ca4efdb
commit
f6518a7bd5
|
@ -1,6 +1,12 @@
|
||||||
# test machine module
|
# test machine module
|
||||||
|
|
||||||
import machine
|
try:
|
||||||
|
import machine
|
||||||
|
except ImportError:
|
||||||
|
print("SKIP")
|
||||||
|
import sys
|
||||||
|
sys.exit()
|
||||||
|
|
||||||
import uctypes
|
import uctypes
|
||||||
|
|
||||||
print(machine.mem8)
|
print(machine.mem8)
|
||||||
|
|
Loading…
Reference in New Issue