From: Alex Martelli Date: Wed, 23 Aug 2006 20:42:02 +0000 (+0000) Subject: x**2 should about equal x*x (including for a float x such that the result is X-Git-Tag: v2.6a1~2751 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20362a820bd09617a33721191aa966416b03427c;p=python x**2 should about equal x*x (including for a float x such that the result is inf) but didn't; added a test to test_float to verify that, and ignored the ERANGE value for errno in the pow operation to make the new test pass (with help from Marilyn Davis at the Google Python Sprint -- thanks!). --- diff --git a/Lib/test/test_float.py b/Lib/test/test_float.py index fb47db8eb0..d616ad9543 100644 --- a/Lib/test/test_float.py +++ b/Lib/test/test_float.py @@ -99,12 +99,25 @@ class IEEEFormatTestCase(unittest.TestCase): ('