summaryrefslogtreecommitdiff
path: root/tests/basics/int_big_error.py
blob: 62ab936f9614c1405d513e67c856a9ae33a4553a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# test errors operating on bignum

i = 1 << 65

try:
    i << -1
except ValueError:
    print("ValueError")

try:
    len(i)
except TypeError:
    print("TypeError")

try:
    1 in i
except TypeError:
    print("TypeError")