1# test construction of bytearray from different objects
2try:
3    from uarray import array
4except ImportError:
5    try:
6        from array import array
7    except ImportError:
8        print("SKIP")
9        raise SystemExit
10
11# arrays
12print(bytearray(array('b', [1, 2])))
13print(bytearray(array('h', [0x101, 0x202])))
14