mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 04:00:28 +01:00
tests/array*: Allow to skip test if "array" is unavailable.
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
# test array + array
|
||||
import array
|
||||
try:
|
||||
import array
|
||||
except ImportError:
|
||||
import sys
|
||||
print("SKIP")
|
||||
sys.exit()
|
||||
|
||||
a1 = array.array('I', [1])
|
||||
a2 = array.array('I', [2])
|
||||
|
||||
Reference in New Issue
Block a user