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

try:
    from array import array
except ImportError:
    import sys
    print("SKIP")
    sys.exit()

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