[Python-checkins] CVS: python/dist/src/Lib/test test_grammar.py,1.35,1.36

Tim Peters tim_one@users.sourceforge.net
Mon, 27 Aug 2001 14:50:46 -0700


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

Modified Files:
	test_grammar.py 
Log Message:
Fix another test still expecting overflow on big int literals.


Index: test_grammar.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_grammar.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** test_grammar.py	2001/03/19 20:42:11	1.35
--- test_grammar.py	2001/08/27 21:50:42	1.36
***************
*** 38,45 ****
              x = eval(s)
          except OverflowError:
!             continue
! ##              raise TestFailed, \
!         print \
!                   'No OverflowError on huge integer literal ' + `s`
  elif eval('maxint == 9223372036854775807'):
      if eval('-9223372036854775807-1 != 01000000000000000000000'):
--- 38,42 ----
              x = eval(s)
          except OverflowError:
!             print "OverflowError on huge integer literal " + `s`
  elif eval('maxint == 9223372036854775807'):
      if eval('-9223372036854775807-1 != 01000000000000000000000'):
***************
*** 52,58 ****
              x = eval(s)
          except OverflowError:
!             continue
!         raise TestFailed, \
!                   'No OverflowError on huge integer literal ' + `s`
  else:
      print 'Weird maxint value', maxint
--- 49,53 ----
              x = eval(s)
          except OverflowError:
!             print "OverflowError on huge integer literal " + `s`
  else:
      print 'Weird maxint value', maxint