Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f44815

Browse files
committed
Fix another test still expecting overflow on big int literals.
1 parent c15a828 commit 9f44815

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

Lib/test/test_grammar.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,7 @@
3737
try:
3838
x = eval(s)
3939
except OverflowError:
40-
continue
41-
## raise TestFailed, \
42-
print \
43-
'No OverflowError on huge integer literal ' + `s`
40+
print "OverflowError on huge integer literal " + `s`
4441
elif eval('maxint == 9223372036854775807'):
4542
if eval('-9223372036854775807-1 != 01000000000000000000000'):
4643
raise TestFailed, 'max negative int'
@@ -51,9 +48,7 @@
5148
try:
5249
x = eval(s)
5350
except OverflowError:
54-
continue
55-
raise TestFailed, \
56-
'No OverflowError on huge integer literal ' + `s`
51+
print "OverflowError on huge integer literal " + `s`
5752
else:
5853
print 'Weird maxint value', maxint
5954

0 commit comments

Comments
 (0)