diff options
author | Finn Bock <bckfnn@worldonline.dk> | 2001-12-07 18:21:56 (GMT) |
---|---|---|
committer | Finn Bock <bckfnn@worldonline.dk> | 2001-12-07 18:21:56 (GMT) |
commit | 71be984b8043665b420f340ae6d88e4b7b012819 (patch) | |
tree | 545d5d398cf6e0df3f06389bd380fea606015573 /Lib/test | |
parent | 44b3f76adf92afe937d9da5c27ebbe1036291a05 (diff) | |
download | cpython-71be984b8043665b420f340ae6d88e4b7b012819.zip cpython-71be984b8043665b420f340ae6d88e4b7b012819.tar.gz cpython-71be984b8043665b420f340ae6d88e4b7b012819.tar.bz2 |
Align the number of %s with the number of format arguments.
This closes patch "[ #490330 ] String format bug in test_b2."
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_b2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_b2.py b/Lib/test/test_b2.py index 1a21689..ca26a77 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) |