diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2009-08-03 23:08:44 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2009-08-03 23:08:44 +0000 |
commit | b0848b771b1a97d306da99e52fcc6d23c8e4aae9 (patch) | |
tree | ceb2d80d96d266123d2661186de3ad5e3fcac410 /numpy/testing/utils.py | |
parent | d5ea689ecbd3560072cc398a1962b16851bf644e (diff) | |
download | numpy-b0848b771b1a97d306da99e52fcc6d23c8e4aae9.tar.gz |
Hmm, somehow a reference to math.fabs slipped by and didn't show here. Try
again.
Diffstat (limited to 'numpy/testing/utils.py')
-rw-r--r-- | numpy/testing/utils.py | 2 |
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, |