[Python-checkins] python/dist/src/Lib/test test_grammar.py,1.41,1.42 tokenize_tests.py,1.3,1.4

bwarsaw@users.sourceforge.net bwarsaw@users.sourceforge.net
Wed, 28 Aug 2002 09:36:13 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv31010/Lib/test

Modified Files:
	test_grammar.py tokenize_tests.py 
Log Message:
Quite down some FutureWarnings.


Index: test_grammar.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_grammar.py,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** test_grammar.py	30 Jul 2002 23:26:01 -0000	1.41
--- test_grammar.py	28 Aug 2002 16:36:10 -0000	1.42
***************
*** 31,38 ****
      maxint = 2147483647
  if maxint == 2147483647:
!     if -2147483647-1 != 020000000000: raise TestFailed, 'max negative int'
      # XXX -2147483648
!     if 037777777777 != -1: raise TestFailed, 'oct -1'
!     if 0xffffffff != -1: raise TestFailed, 'hex -1'
      for s in '2147483648', '040000000000', '0x100000000':
          try:
--- 31,38 ----
      maxint = 2147483647
  if maxint == 2147483647:
!     if -2147483647-1 != 020000000000L: raise TestFailed, 'max negative int'
      # XXX -2147483648
!     if 037777777777L != -1: raise TestFailed, 'oct -1'
!     if 0xffffffffL != -1: raise TestFailed, 'hex -1'
      for s in '2147483648', '040000000000', '0x100000000':
          try:

Index: tokenize_tests.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/tokenize_tests.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** tokenize_tests.py	13 Apr 2001 14:36:51 -0000	1.3
--- tokenize_tests.py	28 Aug 2002 16:36:11 -0000	1.4
***************
*** 40,46 ****
  0377 <> 255
  2147483647   != 017777777777
! -2147483647-1 != 020000000000
! 037777777777 != -1
! 0xffffffff != -1
  
  # Long integers
--- 40,46 ----
  0377 <> 255
  2147483647   != 017777777777
! -2147483647-1 != 020000000000L
! 037777777777L != -1
! 0xffffffffL != -1
  
  # Long integers