summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wiebe <mwwiebe@gmail.com>2016-01-05 14:19:56 -0800
committerMark Wiebe <mwwiebe@gmail.com>2016-01-05 14:20:06 -0800
commit8c55f58b7fe75d24ea9535a9dd1dffc65c0eae49 (patch)
tree54b73801ee36b6bbd850416a63d3ec1cf4451004
parentc1075345e7fe56683f849a3096516e7928744e68 (diff)
downloadnumpy-8c55f58b7fe75d24ea9535a9dd1dffc65c0eae49.tar.gz
TST: Add datetime test distinguishing modified following from preceding
-rw-r--r--numpy/core/tests/test_datetime.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/core/tests/test_datetime.py b/numpy/core/tests/test_datetime.py
index 563aa48fb..8a8eafee8 100644
--- a/numpy/core/tests/test_datetime.py
+++ b/numpy/core/tests/test_datetime.py
@@ -1524,6 +1524,12 @@ class TestDateTime(TestCase):
assert_equal(
np.busday_offset('2010-10-30', 0, roll='modifiedpreceding'),
np.datetime64('2010-10-29'))
+ assert_equal(
+ np.busday_offset('2010-10-16', 0, roll='modifiedfollowing'),
+ np.datetime64('2010-10-18'))
+ assert_equal(
+ np.busday_offset('2010-10-16', 0, roll='modifiedpreceding'),
+ np.datetime64('2010-10-15'))
# roll='raise' by default
assert_raises(ValueError, np.busday_offset, '2011-06-04', 0)