summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2002-08-29 13:09:47 +0000
committerBarry Warsaw <barry@python.org>2002-08-29 13:09:47 +0000
commit18bd11205d5a477e9be9cd70a3cbcc7eeae6fc9b (patch)
treee292938a720cda161e07771bb10bdf85db241d3b
parentc6f80fd9951a1eb8899ca202c3c039a9a6f1fedf (diff)
downloadcpython-git-18bd11205d5a477e9be9cd70a3cbcc7eeae6fc9b.tar.gz
Fixed three exceptions in the Plain integers test, although I'm not
sure these are the best fixes. - Test maxint-1 against the negative octal constant -020000000000 - Comment out the tests for oct -1 and hex -1, since 037777777777 and 0xffffffff raise FutureWarnings now and in Python 2.4 those constants will produce positive values, not negative values. So the existing test seems to test something that won't be true in 2.4.
-rw-r--r--Lib/test/test_grammar.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py
index b418cdd656..3f289d8516 100644
--- a/Lib/test/test_grammar.py
+++ b/Lib/test/test_grammar.py
@@ -30,10 +30,10 @@ try:
except ImportError:
maxint = 2147483647
if maxint == 2147483647:
- if -2147483647-1 != 020000000000L: raise TestFailed, 'max negative int'
+ if -2147483647-1 != -020000000000: raise TestFailed, 'max negative int'
# XXX -2147483648
- if 037777777777L != -1: raise TestFailed, 'oct -1'
- if 0xffffffffL != -1: raise TestFailed, 'hex -1'
+ #if 037777777777 != -1: raise TestFailed, 'oct -1'
+ #if 0xffffffff != -1: raise TestFailed, 'hex -1'
for s in '2147483648', '040000000000', '0x100000000':
try:
x = eval(s)