From dfea1bb7edece3bfadb9ae700b4d08b2495769d8 Mon Sep 17 00:00:00 2001 From: Anthony Baxter Date: Sun, 30 Nov 2003 01:45:20 +0000 Subject: backport: Fix a bug discovered by Kalle Svensson: comparing sys.maxint to 2**32-1 makes no sense. Use 2**31-1 instead. --- Lib/test/test_format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py index f791874..b280ffb 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) -- cgit v0.12