tests/micropython: Make uio-using tests skippable.
This commit is contained in:
parent
e8d4527996
commit
1a71d30fb8
|
@ -1,4 +1,10 @@
|
||||||
import uio
|
try:
|
||||||
|
import uio
|
||||||
|
except ImportError:
|
||||||
|
import sys
|
||||||
|
print("SKIP")
|
||||||
|
sys.exit()
|
||||||
|
|
||||||
import micropython
|
import micropython
|
||||||
|
|
||||||
data = b"1234" * 16
|
data = b"1234" * 16
|
||||||
|
|
|
@ -2,7 +2,12 @@
|
||||||
|
|
||||||
import micropython
|
import micropython
|
||||||
import sys
|
import sys
|
||||||
import uio
|
try:
|
||||||
|
import uio
|
||||||
|
except ImportError:
|
||||||
|
import sys
|
||||||
|
print("SKIP")
|
||||||
|
sys.exit()
|
||||||
|
|
||||||
# preallocate exception instance with some room for a traceback
|
# preallocate exception instance with some room for a traceback
|
||||||
global_exc = StopIteration()
|
global_exc = StopIteration()
|
||||||
|
|
Loading…
Reference in New Issue