diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2014-09-04 16:44:59 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2014-09-04 16:44:59 -0600 |
commit | 77703de7a14c66dcba6ee89bdd7b084ba70f056c (patch) | |
tree | 4b445a84607257f626704e3e5202be7f4e97110d /numpy/testing/utils.py | |
parent | 3ab6ec8e16906fc471f3c49400c62ce0857d5404 (diff) | |
parent | dfc567790badcc87822a39f5c35f0dd78b8c1599 (diff) | |
download | numpy-77703de7a14c66dcba6ee89bdd7b084ba70f056c.tar.gz |
Merge pull request #5048 from juliantaylor/subclass-test-fix
BUG: fix array_almost_equal for array subclasses
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 71c7145f9..dc5929753 100644 --- a/numpy/testing/utils.py +++ b/numpy/testing/utils.py @@ -829,7 +829,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): |