diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2021-02-04 14:16:52 -0600 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2021-02-04 14:35:12 -0600 |
commit | bcb168a56d1c47b877568ce51ce90a1ced89f007 (patch) | |
tree | 016cf7444437f3e3f1eb90394fd2ef73efe18de0 /numpy/array_api/tests/test_elementwise_functions.py | |
parent | d3763198673ffc1092539041b8bd23134ae22bee (diff) | |
download | numpy-bcb168a56d1c47b877568ce51ce90a1ced89f007.tar.gz |
BUG: Allow unmodified use of isclose, allclose, etc. with timedelta
Disallowing timedelta64+float promotion (to timedelta64) in all cases
(previously it was assymetric and "half allowed") meant that isclose,
allclose, np.ma.allclose, and assert_arrays_almost_equal (which uses
isclose), would stop work for timedelta64. Hardcoding that timedelta64
is passed on unmodified retains the old behaviour.
It may make sense to deprecate or change this behaviour in the future,
but for the 1.20 release, the behaviour should be as much unmodified
as possible.
Closes gh-18286
Diffstat (limited to 'numpy/array_api/tests/test_elementwise_functions.py')
0 files changed, 0 insertions, 0 deletions