mirror of
https://github.com/micropython/micropython.git
synced 2025-09-06 09:50:20 +02:00
14 lines
284 B
Python
14 lines
284 B
Python
# test construction of array.array from different objects
|
|
|
|
try:
|
|
from uarray import array
|
|
except ImportError:
|
|
try:
|
|
from array import array
|
|
except ImportError:
|
|
print("SKIP")
|
|
raise SystemExit
|
|
|
|
# raw copy from bytes, bytearray
|
|
print(array('h', b'12'))
|