summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/bytes_construct.py
blob: 8664d7296db41f79d1ba39b88f83f2f75091a326 (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(bytes(array('f', [1, 2.3])))