]> granicus.if.org Git - python/commitdiff
Quite down some FutureWarnings.
authorBarry Warsaw <barry@python.org>
Wed, 28 Aug 2002 16:36:11 +0000 (16:36 +0000)
committerBarry Warsaw <barry@python.org>
Wed, 28 Aug 2002 16:36:11 +0000 (16:36 +0000)
Lib/test/test_grammar.py
Lib/test/tokenize_tests.py

index c77e19e0f65d42768991dd95de960d12b936353d..b418cdd656f13a283d7c3d7d27ec4f495a9199ba 100644 (file)
@@ -30,10 +30,10 @@ try:
 except ImportError:
     maxint = 2147483647
 if maxint == 2147483647:
-    if -2147483647-1 != 020000000000: raise TestFailed, 'max negative int'
+    if -2147483647-1 != 020000000000L: raise TestFailed, 'max negative int'
     # XXX -2147483648
-    if 037777777777 != -1: raise TestFailed, 'oct -1'
-    if 0xffffffff != -1: raise TestFailed, 'hex -1'
+    if 037777777777L != -1: raise TestFailed, 'oct -1'
+    if 0xffffffffL != -1: raise TestFailed, 'hex -1'
     for s in '2147483648', '040000000000', '0x100000000':
         try:
             x = eval(s)
index e990a36069bd4002e4a788ae98f7cd7a46704062..2e55fb3dc3de0a8c5b8b0ccf791317d3845296c8 100644 (file)
@@ -39,9 +39,9 @@ x = 0
 0xff <> 255
 0377 <> 255
 2147483647   != 017777777777
--2147483647-1 != 020000000000
-037777777777 != -1
-0xffffffff != -1
+-2147483647-1 != 020000000000L
+037777777777L != -1
+0xffffffffL != -1
 
 # Long integers
 x = 0L