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

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

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