]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Make the test pass now that 10**-15 returns a float instead of raising
authorGuido van Rossum <guido@python.org>
Thu, 12 Jul 2001 12:51:22 +0000 (12:51 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 12 Jul 2001 12:51:22 +0000 (12:51 +0000)
an exception.

Lib/test/test_pow.py

index f1e51792af68d9eb5f7e421325365e17510d7d53..bccd207fc7f370114c943db6a0a1f9ceb1944d42 100644 (file)
@@ -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):