From: Guido van Rossum Date: Thu, 12 Jul 2001 12:51:22 +0000 (+0000) Subject: Make the test pass now that 10**-15 returns a float instead of raising X-Git-Tag: v2.2a3~1248 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=28358fbed62e06bddf8934a591e9c09d91bd2024;p=thirdparty%2FPython%2Fcpython.git Make the test pass now that 10**-15 returns a float instead of raising an exception. --- diff --git a/Lib/test/test_pow.py b/Lib/test/test_pow.py index f1e51792af68..bccd207fc7f3 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):