blob: 4853704289fd15dc2eba4dc20937b575cd16214f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# test errors from bad operations (unary, binary, etc)
try:
memoryview
except:
print("SKIP")
raise SystemExit
# unsupported binary operators
try:
memoryview(b"") + b""
except TypeError:
print("TypeError")
try:
memoryview(b"") + memoryview(b"")
except TypeError:
print("TypeError")
try:
m = memoryview(bytearray())
m += bytearray()
except TypeError:
print("TypeError")
|