mirror of
https://github.com/python/cpython
synced 2024-10-14 21:49:11 +00:00
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:
parent
6c9e130524
commit
457bf91a7f
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue