summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-04-01 19:01:39 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-04-01 19:01:39 (GMT)
commit05c09d08f9b52e7abceb5bb32295c9d3ec3612ef (patch)
treec8f3cf4ba47879b226824a925d50db3101a6233b /Lib/test
parent28bb572ab4e72abfd918343f1d6114630daa4564 (diff)
downloadcpython-05c09d08f9b52e7abceb5bb32295c9d3ec3612ef.zip
cpython-05c09d08f9b52e7abceb5bb32295c9d3ec3612ef.tar.gz
cpython-05c09d08f9b52e7abceb5bb32295c9d3ec3612ef.tar.bz2
Format strings (tuples,) appropriately
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_long.py2
-rw-r--r--Lib/test/test_pow.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py
index 573ef75..5e98225 100644
--- a/Lib/test/test_long.py
+++ b/Lib/test/test_long.py
@@ -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
diff --git a/Lib/test/test_pow.py b/Lib/test/test_pow.py
index 64c5890..7a38f67 100644
--- a/Lib/test/test_pow.py
+++ b/Lib/test/test_pow.py
@@ -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)+ \