circuitpython/tests/basics/array_construct_endian.py

12 lines
219 B
Python

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