mirror of https://github.com/python/cpython
Make the test pass now that 10**-15 returns a float instead of raising
an exception.
This commit is contained in:
parent
aa31429854
commit
28358fbed6
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue