Format strings (tuples,) appropriately
This commit is contained in:
parent
28bb572ab4
commit
05c09d08f9
|
@ -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
|
||||
|
||||
|
|
|
@ -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)+ \
|
||||
|
|
Loading…
Reference in New Issue