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

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

print(array('f', array('h', [1, 2])))
print(array('d', array('f', [1, 2])))