Skip to content

BUG: assert_array_almost_equal fails to compare array with masked array #14624

@zbruick

Description

@zbruick

Reproducing code example:

The following code sample passes, but is expected to fail:

from numpy.testing import assert_array_almost_equal
assert_array_almost_equal(np.array([10, 20]), np.ma.array([10, np.nan], mask=[False, True]), 2)

Numpy/Python version information:

python 3.7.3
numpy 1.17.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions