Fix a bug discovered by Kalle Svensson: comparing sys.maxint to

2**32-1 makes no sense.  Use 2**31-1 instead.
This commit is contained in:
Guido van Rossum 2003-11-29 23:55:09 +00:00
parent 6c9e130524
commit 457bf91a7f

View file

@ -230,7 +230,7 @@ def test_exc(formatstr, args, exception, excmsg):
test_exc(u'no format', u'1', TypeError,
"not all arguments converted during string formatting")
if sys.maxint == 2**32-1:
if sys.maxint == 2**31-1:
# crashes 2.2.1 and earlier:
try:
"%*d"%(sys.maxint, -127)