summaryrefslogtreecommitdiff
path: root/Lib/test/test_pow.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-07-12 12:51:22 +0000
committerGuido van Rossum <guido@python.org>2001-07-12 12:51:22 +0000
commit28358fbed62e06bddf8934a591e9c09d91bd2024 (patch)
tree4261ba76a36d58c309bc1733c372b12d3b5e733c /Lib/test/test_pow.py
parentaa314298543132742efb5544ad202bb209136abf (diff)
downloadcpython-git-28358fbed62e06bddf8934a591e9c09d91bd2024.tar.gz
Make the test pass now that 10**-15 returns a float instead of raising
an exception.
Diffstat (limited to 'Lib/test/test_pow.py')
-rw-r--r--Lib/test/test_pow.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/test/test_pow.py b/Lib/test/test_pow.py
index f1e51792af..bccd207fc7 100644
--- a/Lib/test/test_pow.py
+++ b/Lib/test/test_pow.py
@@ -32,9 +32,7 @@ def powtest(type):
try:
pow(ii, jj)
except ValueError:
- pass # taking an int to a neg int power should fail
- else:
- raise ValueError, "pow(%s, %s) did not fail" % (ii, jj)
+ raise ValueError, "pow(%s, %s) failed" % (ii, jj)
for othertype in int, long, float:
for i in range(1, 100):