From 4097ec3ec10c41d399518867f4bebb0a53ee8a5c Mon Sep 17 00:00:00 2001 From: Patrick Peglar Date: Sun, 31 Aug 2014 15:43:39 +0100 Subject: BUG: fix percentage reporting when testing.assert_allclose fails. --- numpy/testing/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/testing/utils.py') diff --git a/numpy/testing/utils.py b/numpy/testing/utils.py index bd184d922..71c7145f9 100644 --- a/numpy/testing/utils.py +++ b/numpy/testing/utils.py @@ -1289,7 +1289,7 @@ def assert_allclose(actual, desired, rtol=1e-7, atol=0, """ import numpy as np def compare(x, y): - return np.allclose(x, y, rtol=rtol, atol=atol) + return np.core.numeric._allclose_points(x, y, rtol=rtol, atol=atol) actual, desired = np.asanyarray(actual), np.asanyarray(desired) header = 'Not equal to tolerance rtol=%g, atol=%g' % (rtol, atol) -- cgit v1.2.1