[Numpy-discussion] assert_almost_equal bug?

Keith Goodman kwgoodman at gmail.com
Sat Mar 12 10:00:45 EST 2011


On Sat, Mar 12, 2011 at 4:16 AM, Ralf Gommers
<ralf.gommers at googlemail.com> wrote:
> On Sat, Mar 12, 2011 at 12:10 AM, Keith Goodman <kwgoodman at 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