summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/bytes_construct.py
blob: 0806087b0ef0e2ac72930c5356e59676a3c12640 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# test construction of bytearray 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])))