[Python-checkins] python/dist/src/Lib/test test_format.py, 1.19, 1.19.16.1

anthonybaxter at users.sourceforge.net anthonybaxter at users.sourceforge.net
Sat Nov 29 20:45:22 EST 2003


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

Modified Files:
      Tag: release23-maint
	test_format.py 
Log Message:
backport:
Fix a bug discovered by Kalle Svensson: comparing sys.maxint to
2**32-1 makes no sense.  Use 2**31-1 instead.


Index: test_format.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_format.py,v
retrieving revision 1.19
retrieving revision 1.19.16.1
diff -C2 -d -r1.19 -r1.19.16.1
*** test_format.py	24 Nov 2002 02:35:35 -0000	1.19
--- test_format.py	30 Nov 2003 01:45:20 -0000	1.19.16.1
***************
*** 231,235 ****
           "not all arguments converted during string formatting")
  
! if sys.maxint == 2**32-1:
      # crashes 2.2.1 and earlier:
      try:
--- 231,235 ----
           "not all arguments converted during string formatting")
  
! if sys.maxint == 2**31-1:
      # crashes 2.2.1 and earlier:
      try:





More information about the Python-checkins mailing list