summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wiebe <mwwiebe@gmail.com>2016-01-05 14:19:56 -0800
committerCharles Harris <charlesr.harris@gmail.com>2016-01-05 16:35:35 -0700
commit99d28b93aa3a93abc0a1b4f3b78f04459988d7dd (patch)
tree1a51b4d51d06694d3ab8e849f2f17a424ab4f107
parent347fc8eda011470bfd87b8b943063f6a9e8058bc (diff)
downloadnumpy-99d28b93aa3a93abc0a1b4f3b78f04459988d7dd.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 5fa281867..31c5b6f2f 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)