summaryrefslogtreecommitdiff
path: root/numpy/testing/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/testing/utils.py')
-rw-r--r--numpy/testing/utils.py2
1 files changed, 1 insertions, 1 deletions
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,