Format strings (tuples,) appropriately

This commit is contained in:
Neal Norwitz 2002-04-01 19:01:39 +00:00
parent 28bb572ab4
commit 05c09d08f9
2 changed files with 3 additions and 3 deletions

View File

@ -326,7 +326,7 @@ def test_auto_overflow():
pass
else:
raise TestFailed("pow%r should have raised "
"TypeError" % ((longx, longy, long(z))))
"TypeError" % ((longx, longy, long(z)),))
# ---------------------------------------- tests of long->float overflow

View File

@ -70,8 +70,8 @@ def powtest(type):
except TypeError:
pass
else:
raise TestFailed("expected TypeError from "
"pow%r" % ((type(i), j, k)))
raise ValueError, "expected TypeError from " + \
"pow%r" % ((type(i), j, k),)
continue
if compare(pow(type(i),j,k), pow(type(i),j)% type(k)):
raise ValueError, "pow(" +str(i)+ "," +str(j)+ \