summaryrefslogtreecommitdiff
path: root/tests/basics/bytearray_intbig.py
blob: 77bcf2225441c8e83c7f1a06b5d37e36d93263c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# Skip if long ints are not supported.
try:
    # We have to use variables because 1 << 40 causes an exception on parse and
    # cannot be caught.
    x = 40
    x = 1 << x
except OverflowError:
    print("SKIP")
    import sys
    sys.exit(1)

print(bytearray(2**65 - (2**65 - 1)))