From 20362a820bd09617a33721191aa966416b03427c Mon Sep 17 00:00:00 2001 From: Alex Martelli Date: Wed, 23 Aug 2006 20:42:02 +0000 Subject: 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!). --- Lib/test/test_float.py | 15 ++++++++++++++- Objects/floatobject.c | 6 +++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/Lib/test/test_float.py b/Lib/test/test_float.py index fb47db8..d616ad9 100644 --- a/Lib/test/test_float.py +++ b/Lib/test/test_float.py @@ -99,12 +99,25 @@ class IEEEFormatTestCase(unittest.TestCase): ('