diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-08-27 21:50:42 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-08-27 21:50:42 (GMT) |
commit | 9f448150c85d4447b7c7f39b43851a0edc150bdf (patch) | |
tree | 6664b1ff9155b790b3c4b16c18894e082f4182fe | |
parent | c15a82813acd556c93cdea6db3d40413e34e422a (diff) | |
download | cpython-9f448150c85d4447b7c7f39b43851a0edc150bdf.zip cpython-9f448150c85d4447b7c7f39b43851a0edc150bdf.tar.gz cpython-9f448150c85d4447b7c7f39b43851a0edc150bdf.tar.bz2 |
Fix another test still expecting overflow on big int literals.
-rw-r--r-- | Lib/test/test_grammar.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py index 04b1431..254e006 100644 --- a/Lib/test/test_grammar.py +++ b/Lib/test/test_grammar.py @@ -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 |