Commit bf2a6c4a authored by Stefan Behnel's avatar Stefan Behnel

fix test in Py3

parent 517fc887
......@@ -115,16 +115,16 @@ def x_and_1_or_False(x):
def test_large_int(unsigned long x):
"""
>>> try: test_large_int(1 << 127)
... except OverflowError: print True
... except OverflowError: print(True)
True
>>> try: test_large_int(1 << 63)
... except OverflowError: print True
... except OverflowError: print(True)
True
>>> try: test_large_int(1 << 48)
... except OverflowError: print True
... except OverflowError: print(True)
True
>>> try: test_large_int(1 << 31)
... except OverflowError: print True
... except OverflowError: print(True)
True
>>> test_large_int(0)
False
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment