[Python-checkins] python/dist/src/Lib/test test_format.py, 1.20,
1.21
gvanrossum at users.sourceforge.net
gvanrossum at users.sourceforge.net
Sat Nov 29 18:55:11 EST 2003
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv28944
Modified Files:
test_format.py
Log Message:
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.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** test_format.py 29 Nov 2003 23:52:12 -0000 1.20
--- test_format.py 29 Nov 2003 23:55:09 -0000 1.21
***************
*** 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