diff options
author | David Cournapeau <cournape@gmail.com> | 2009-07-27 08:07:07 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-07-27 08:07:07 +0000 |
commit | 56caa44161152ffd4f354757c8d4d42007413f79 (patch) | |
tree | 0665e5c878ff5d34ef0be675c47cac8d408470d8 /numpy/testing/utils.py | |
parent | f49d6d36b666eaff6a82614badf452df1844e33b (diff) | |
download | numpy-56caa44161152ffd4f354757c8d4d42007413f79.tar.gz |
BUG: assert_array_compare did not raise an exception when the nan indexes of both arguments did not match.
Diffstat (limited to 'numpy/testing/utils.py')
-rw-r--r-- | numpy/testing/utils.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/testing/utils.py b/numpy/testing/utils.py index b18cef6e3..9928bbb90 100644 --- a/numpy/testing/utils.py +++ b/numpy/testing/utils.py @@ -423,6 +423,7 @@ def assert_array_compare(comparison, x, y, err_msg='', verbose=True, '%s mismatch)' % (xnanid, ynanid), verbose=verbose, header=header, names=('x', 'y')) + raise AssertionError(msg) val = comparison(x[~xnanid], y[~ynanid]) else: val = comparison(x,y) |