On Mon, Jul 27, 2009 at 1:00 AM, David Cournapeau <
[email protected]> wrote:

> Hi,
>
>    In some cases, some of the testing functions assert_array_* raise a
> ValueError instead of AssertionError:
>
> >>> np.testing.assert_array_almost_equal(np.array([1, 2, np.nan]),
> np.array([1, 2, 3])) # raises ValueError
> >>> np.testing.assert_array_almost_equal(np.array([1, 2, np.inf]),
> np.array([1, 2, 3])) # raises AssertionError
>
> This seems at least inconsistent - is there a rationale or should this
> be considered as a bug ?
>

I think that should be considered a bug.

Chuck
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to