Skip to content

Commit 0d23198

Browse files
mwiebecharris
authored andcommitted
TST: Add true_divide and floor_divide tests for the mm_d timedelta case
1 parent ee33440 commit 0d23198

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

numpy/core/tests/test_datetime.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,9 @@ def test_datetime_divide(self):
924924
assert_equal((tda / 0.5).dtype, np.dtype('m8[h]'))
925925
# m8 / m8
926926
assert_equal(tda / tdb, 6.0 / 9.0)
927+
assert_equal(np.divide(tda, tdb), 6.0 / 9.0)
928+
assert_equal(np.true_divide(tda, tdb), 6.0 / 9.0)
929+
assert_equal(np.floor_divide(tda, tdb), 6.0 / 9.0)
927930
assert_equal(tdb / tda, 9.0 / 6.0)
928931
assert_equal((tda / tdb).dtype, np.dtype('f8'))
929932
assert_equal(tda / tdd, 60.0)

0 commit comments

Comments
 (0)