1# test construction of bytes 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(bytes(array('b', [1, 2])))
13print(bytes(array('h', [0x101, 0x202])))
14