3ab6aa3a6d
Tests which don't work with small ints are suffixed with _intbig.py. Some of these may still work with long long ints and need to be reclassified later.
14 lines
316 B
Python
14 lines
316 B
Python
# test errors from bad operations (unary, binary, etc)
|
|
|
|
def test_exc(code, exc):
|
|
try:
|
|
exec(code)
|
|
print("no exception")
|
|
except exc:
|
|
print("right exception")
|
|
except:
|
|
print("wrong exception")
|
|
|
|
# object with buffer protocol needed on rhs
|
|
test_exc("(1 << 70) in 1", TypeError)
|