summaryrefslogtreecommitdiff
path: root/tests/float/bytearray_construct.py
blob: f84fa7be58c36b2ec89728be06dc33bfc281df79 (plain)
1
2
3
4
5
6
7
8
9
# test construction of bytearray from array with float type

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

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