summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/bytes_construct_endian.py
blob: 208f56162f859ea8a950be2a2a0fddaf02c8583f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# test construction of bytes from array with float type

try:
    from uarray import array
except ImportError:
    try:
        from array import array
    except ImportError:
        print("SKIP")
        raise SystemExit

print(bytes(array("f", [1, 2.3])))