Rename array test to array1 so it doesn't clash with array module.
On my machine, 'import array' in CPython tries to load the array test.
This commit is contained in:
13
tests/basics/array1.py
Normal file
13
tests/basics/array1.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import array
|
||||
|
||||
a = array.array('B', [1, 2, 3])
|
||||
print(a, len(a))
|
||||
i = array.array('I', [1, 2, 3])
|
||||
print(i, len(i))
|
||||
print(a[0])
|
||||
print(i[-1])
|
||||
|
||||
# Empty arrays
|
||||
print(len(array.array('h')))
|
||||
print(array.array('i'))
|
||||
|
||||
Reference in New Issue
Block a user