Kaydet (Commit) 28358fbe authored tarafından Guido van Rossum's avatar Guido van Rossum

Make the test pass now that 10**-15 returns a float instead of raising

an exception.
üst aa314298
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment