summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/array_construct_endian.py
blob: 82a962fbe0d57d9ed5d642e56bf5000e25f6f65e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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'))