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

an exception.
This commit is contained in:
Guido van Rossum 2001-07-12 12:51:22 +00:00
parent aa31429854
commit 28358fbed6
1 changed files with 1 additions and 3 deletions

View File

@ -32,9 +32,7 @@ def powtest(type):
try: try:
pow(ii, jj) pow(ii, jj)
except ValueError: except ValueError:
pass # taking an int to a neg int power should fail raise ValueError, "pow(%s, %s) failed" % (ii, jj)
else:
raise ValueError, "pow(%s, %s) did not fail" % (ii, jj)
for othertype in int, long, float: for othertype in int, long, float:
for i in range(1, 100): for i in range(1, 100):