diff options
author | Guido van Rossum <guido@python.org> | 2003-11-29 23:55:09 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2003-11-29 23:55:09 (GMT) |
commit | 457bf91a7fb1ab628a94fe740450f137b4ee1b92 (patch) | |
tree | a8765f9136140f1d67f9205e3166bf0989333e8d /Lib | |
parent | 6c9e130524533263b690e86639a36b6f3e7a8eeb (diff) | |
download | cpython-457bf91a7fb1ab628a94fe740450f137b4ee1b92.zip cpython-457bf91a7fb1ab628a94fe740450f137b4ee1b92.tar.gz cpython-457bf91a7fb1ab628a94fe740450f137b4ee1b92.tar.bz2 |
Fix a bug discovered by Kalle Svensson: comparing sys.maxint to
2**32-1 makes no sense. Use 2**31-1 instead.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_format.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py index 0a51231..2959447 100644 --- a/Lib/test/test_format.py +++ b/Lib/test/test_format.py @@ -230,7 +230,7 @@ test_exc(u'no format', '1', TypeError, 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) |