]> granicus.if.org Git - python/commitdiff
Align the number of %s with the number of format arguments.
authorFinn Bock <bckfnn@worldonline.dk>
Fri, 7 Dec 2001 18:21:56 +0000 (18:21 +0000)
committerFinn Bock <bckfnn@worldonline.dk>
Fri, 7 Dec 2001 18:21:56 +0000 (18:21 +0000)
This closes patch "[ #490330 ] String format bug in test_b2."

Lib/test/test_b2.py

index 1a21689ef81224553be470cf3ce3f50ceee2fdfe..ca26a7718408c4df68b6b2368f16a93888af1503 100644 (file)
@@ -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)