mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 11:10:14 +01:00
tests/micropython: Make uio-using tests skippable.
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
import uio
|
||||
try:
|
||||
import uio
|
||||
except ImportError:
|
||||
import sys
|
||||
print("SKIP")
|
||||
sys.exit()
|
||||
|
||||
import micropython
|
||||
|
||||
data = b"1234" * 16
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user