summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wiebe <mwwiebe@gmail.com>2011-09-17 18:12:43 -0700
committerCharles Harris <charlesr.harris@gmail.com>2011-10-01 09:43:10 -0600
commit0d231984bb867eb1634f3b92a76dcd9c4958c7f3 (patch)
treedf88799f8c7ad3d4b7405bc3e013e56f3ed641c8
parentee33440f2b9e553228aed83bdbd8d61e63316c00 (diff)
downloadnumpy-0d231984bb867eb1634f3b92a76dcd9c4958c7f3.tar.gz
TST: Add true_divide and floor_divide tests for the mm_d timedelta case
-rw-r--r--numpy/core/tests/test_datetime.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/core/tests/test_datetime.py b/numpy/core/tests/test_datetime.py
index b04015a33..ec76ed199 100644
--- a/numpy/core/tests/test_datetime.py
+++ b/numpy/core/tests/test_datetime.py
@@ -924,6 +924,9 @@ class TestDateTime(TestCase):
assert_equal((tda / 0.5).dtype, np.dtype('m8[h]'))
# m8 / m8
assert_equal(tda / tdb, 6.0 / 9.0)
+ assert_equal(np.divide(tda, tdb), 6.0 / 9.0)
+ assert_equal(np.true_divide(tda, tdb), 6.0 / 9.0)
+ assert_equal(np.floor_divide(tda, tdb), 6.0 / 9.0)
assert_equal(tdb / tda, 9.0 / 6.0)
assert_equal((tda / tdb).dtype, np.dtype('f8'))
assert_equal(tda / tdd, 60.0)