diff options
Diffstat (limited to 'Lib/test/test_grammar.py')
-rw-r--r-- | Lib/test/test_grammar.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py index 6666c13..0eed4bb 100644 --- a/Lib/test/test_grammar.py +++ b/Lib/test/test_grammar.py @@ -47,7 +47,7 @@ if maxint == 2147483647: try: x = eval(s) except OverflowError: - print "OverflowError on huge integer literal " + `s` + print "OverflowError on huge integer literal " + repr(s) elif eval('maxint == 9223372036854775807'): if eval('-9223372036854775807-1 != -01000000000000000000000'): raise TestFailed, 'max negative int' @@ -58,7 +58,7 @@ elif eval('maxint == 9223372036854775807'): try: x = eval(s) except OverflowError: - print "OverflowError on huge integer literal " + `s` + print "OverflowError on huge integer literal " + repr(s) else: print 'Weird maxint value', maxint |