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('h', [1, 2])))
13print(bytearray(array('I', [1, 2])))
14