micropython/tests/basics/array_construct_endian.py

11 wiersze
210 B
Python

# test construction of array.array from different objects
try:
from array import array
except ImportError:
print("SKIP")
raise SystemExit
# raw copy from bytes, bytearray
print(array('h', b'12'))