tests/micropython: Make uio-using tests skippable.

This commit is contained in:
Paul Sokolovsky 2017-03-09 10:26:31 +01:00
parent e8d4527996
commit 1a71d30fb8
2 changed files with 13 additions and 2 deletions

View File

@ -1,4 +1,10 @@
import uio
try:
import uio
except ImportError:
import sys
print("SKIP")
sys.exit()
import micropython
data = b"1234" * 16

View File

@ -2,7 +2,12 @@
import micropython
import sys
import uio
try:
import uio
except ImportError:
import sys
print("SKIP")
sys.exit()
# preallocate exception instance with some room for a traceback
global_exc = StopIteration()