From 56caa44161152ffd4f354757c8d4d42007413f79 Mon Sep 17 00:00:00 2001 From: David Cournapeau Date: Mon, 27 Jul 2009 08:07:07 +0000 Subject: BUG: assert_array_compare did not raise an exception when the nan indexes of both arguments did not match. --- numpy/testing/utils.py | 1 + 1 file changed, 1 insertion(+) (limited to 'numpy/testing/utils.py') 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) -- cgit v1.2.1