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 98e1c2a26..8e01afb56 100644
--- a/numpy/testing/utils.py
+++ b/numpy/testing/utils.py
@@ -180,7 +180,7 @@ def assert_approx_equal(actual,desired,significant=7,err_msg='',verbose=True):
header='Items are not equal to %d significant digits:' %
significant,
verbose=verbose)
- assert math.fabs(sc_desired - sc_actual) < pow(10.,-1*significant), msg
+ assert math.fabs(sc_desired - sc_actual) < pow(10.,-(significant-1)), msg
def assert_array_compare(comparison, x, y, err_msg='', verbose=True,
header=''):