[Numpy-discussion] assert_almost_equal bug?

Keith Goodman kwgoodman@gmail....
Sat Mar 12 09:00:45 CST 2011

On Sat, Mar 12, 2011 at 4:16 AM, Ralf Gommers
<ralf.gommers@googlemail.com> wrote:
> On Sat, Mar 12, 2011 at 12:10 AM, Keith Goodman <kwgoodman@gmail.com> wrote:
>> assert_almost_equal() and assert_array_almost_equal() raise a
>> ValueError instead of an AssertionError when the array contains
>> np.inf:
> That's a bug, is fixed in 45269ee1. assert_array_compare was checking
> for nans but not for infs.

Thanks, Ralf!

More information about the NumPy-Discussion mailing list