summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/bytearray_construct.py
blob: 257d37d1bea0ade3e5b30d00c4f5a5347fcf7d0c (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(bytearray(array("f", [1, 2.3])))