tests: Rename "array" module to "uarray".

This commit is contained in:
Damien George
2019-10-22 17:33:23 +11:00
parent a2eea57b1d
commit 30e25174bb
26 changed files with 152 additions and 63 deletions

View File

@@ -1,10 +1,17 @@
# test memoryview accessing maximum values for signed/unsigned elements
try:
from array import array
memoryview
except:
print("SKIP")
raise SystemExit
try:
from uarray import array
except ImportError:
try:
from array import array
except ImportError:
print("SKIP")
raise SystemExit
print(list(memoryview(array('i', [0x7f000000, -0x80000000]))))
print(list(memoryview(array('I', [0x7f000000, 0x80000000, 0x81000000, 0xffffffff]))))