summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/array_construct2.py
blob: d1b1e9d158c63473f542edeedff1a3260bf689e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
try:
    from uarray import array
except ImportError:
    try:
        from array import array
    except ImportError:
        print("SKIP")
        raise SystemExit

# construct from something with unknown length (requires generators)
print(array('i', (i for i in range(10))))