summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pow.py
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/test_pow.py
parent28bb572ab4e72abfd918343f1d6114630daa4564 (diff)
downloadcpython-05c09d08f9b52e7abceb5bb32295c9d3ec3612ef.zip
cpython-05c09d08f9b52e7abceb5bb32295c9d3ec3612ef.tar.gz
cpython-05c09d08f9b52e7abceb5bb32295c9d3ec3612ef.tar.bz2
Format strings (tuples,) appropriately
Diffstat (limited to 'Lib/test/test_pow.py')
-rw-r--r--Lib/test/test_pow.py4
1 files changed, 2 insertions, 2 deletions
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)+ \