From: Finn Bock Date: Fri, 7 Dec 2001 18:21:56 +0000 (+0000) Subject: Align the number of %s with the number of format arguments. X-Git-Tag: v2.2.1c1~481 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=71be984b8043665b420f340ae6d88e4b7b012819;p=thirdparty%2FPython%2Fcpython.git Align the number of %s with the number of format arguments. This closes patch "[ #490330 ] String format bug in test_b2." --- diff --git a/Lib/test/test_b2.py b/Lib/test/test_b2.py index 1a21689ef812..ca26a7718408 100644 --- a/Lib/test/test_b2.py +++ b/Lib/test/test_b2.py @@ -99,8 +99,8 @@ for x in 2, 2L, 2.0: except TypeError: pass else: - raise TestFailed("3-arg float pow() should have " - "raised TypeError %r" % (x, y, z)) + raise TestFailed("3-arg float pow(%s, %s, %s) should " + "have raised TypeError" % (x, y, z)) else: if fcmp(pow(x, y, z), 24.0): raise TestFailed, 'pow(%s, %s, %s)' % (x, y, z)