Fix another test still expecting overflow on big int literals.
This commit is contained in:
parent
c15a82813a
commit
9f448150c8
|
@ -37,10 +37,7 @@ if maxint == 2147483647:
|
|||
try:
|
||||
x = eval(s)
|
||||
except OverflowError:
|
||||
continue
|
||||
## raise TestFailed, \
|
||||
print \
|
||||
'No OverflowError on huge integer literal ' + `s`
|
||||
print "OverflowError on huge integer literal " + `s`
|
||||
elif eval('maxint == 9223372036854775807'):
|
||||
if eval('-9223372036854775807-1 != 01000000000000000000000'):
|
||||
raise TestFailed, 'max negative int'
|
||||
|
@ -51,9 +48,7 @@ elif eval('maxint == 9223372036854775807'):
|
|||
try:
|
||||
x = eval(s)
|
||||
except OverflowError:
|
||||
continue
|
||||
raise TestFailed, \
|
||||
'No OverflowError on huge integer literal ' + `s`
|
||||
print "OverflowError on huge integer literal " + `s`
|
||||
else:
|
||||
print 'Weird maxint value', maxint
|
||||
|
||||
|
|
Loading…
Reference in New Issue