2017-05-08 20:49:19 -04:00
|
|
|
# test memoryview accessing maximum values for signed/unsigned elements
|
|
|
|
try:
|
|
|
|
memoryview
|
|
|
|
except:
|
|
|
|
print("SKIP")
|
2017-06-10 13:03:01 -04:00
|
|
|
raise SystemExit
|
2019-10-22 02:33:23 -04:00
|
|
|
try:
|
2022-08-18 02:57:45 -04:00
|
|
|
from array import array
|
2019-10-22 02:33:23 -04:00
|
|
|
except ImportError:
|
2022-08-18 02:57:45 -04:00
|
|
|
print("SKIP")
|
|
|
|
raise SystemExit
|
2017-05-08 20:49:19 -04:00
|
|
|
|
|
|
|
print(list(memoryview(array('i', [0x7f000000, -0x80000000]))))
|
|
|
|
print(list(memoryview(array('I', [0x7f000000, 0x80000000, 0x81000000, 0xffffffff]))))
|