Skip to content

BUG: numpy.testing.assert_equal does not test values of datetime64/timedelta64 scalars #10081

Closed
@shoyer

Description

@shoyer

As reported by @Matveich in #10004

Test cases:

>>> np.testing.assert_equal(np.datetime64('2000-01-01'), np.datetime64('2000-01-10'))
>>> np.testing.assert_equal(np.timedelta64(10, 'ns'), np.timedelta64(20, 'ns'))

Equality checks (!= and ==) seem to work correctly, as does np.testing.assert_array_equal.

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