From b0848b771b1a97d306da99e52fcc6d23c8e4aae9 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Mon, 3 Aug 2009 23:08:44 +0000 Subject: Hmm, somehow a reference to math.fabs slipped by and didn't show here. Try again. --- numpy/testing/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/testing') diff --git a/numpy/testing/utils.py b/numpy/testing/utils.py index 29e78be2c..96b2d462c 100644 --- a/numpy/testing/utils.py +++ b/numpy/testing/utils.py @@ -507,7 +507,7 @@ def assert_approx_equal(actual,desired,significant=7,err_msg='',verbose=True): return except TypeError: pass - if math.fabs(sc_desired - sc_actual) >= pow(10.,-(significant-1)) : + if np.abs(sc_desired - sc_actual) >= np.power(10.,-(significant-1)) : raise AssertionError(msg) def assert_array_compare(comparison, x, y, err_msg='', verbose=True, -- cgit v1.2.1