summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/bytearray_construct_endian.py
blob: f68f9b89d1ebfe3d31241c1bbbc95323d19af851 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# test construction of bytearray from different objects
try:
    from array import array
except ImportError:
    import sys
    print("SKIP")
    sys.exit()

# arrays
print(bytearray(array('h', [1, 2])))
print(bytearray(array('I', [1, 2])))