summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/array_construct.py
blob: 6b5c996312d9cb5a6240a57ccfb210886ecf1aa2 (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])))