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 ?

cheers,

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

Reply via email to