From dfc567790badcc87822a39f5c35f0dd78b8c1599 Mon Sep 17 00:00:00 2001 From: Julian Taylor Date: Fri, 5 Sep 2014 00:17:28 +0200 Subject: BUG: fix array_almost_equal for array subclasses introduced in gh-4105/ab04e1ae0e8eca717bc7e42f3b0a60c9ff764289 --- 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 ddf21e2bc..f83c9ea51 100644 --- a/numpy/testing/utils.py +++ b/numpy/testing/utils.py @@ -823,7 +823,7 @@ def assert_array_almost_equal(x, y, decimal=6, err_msg='', verbose=True): # make sure y is an inexact type to avoid abs(MIN_INT); will cause # casting of x later. dtype = result_type(y, 1.) - y = array(y, dtype=dtype, copy=False) + y = array(y, dtype=dtype, copy=False, subok=True) z = abs(x-y) if not issubdtype(z.dtype, number): -- cgit v1.2.1