File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1004,12 +1004,15 @@ def test_datetime64_in_list():
1004
1004
def test_change_epoch ():
1005
1005
date = np .datetime64 ('2000-01-01' )
1006
1006
1007
+ # use private method to clear the epoch and allow it to be set...
1008
+ mdates ._reset_epoch_test_example ()
1009
+ mdates .get_epoch () # Set default.
1010
+
1007
1011
with pytest .raises (RuntimeError ):
1008
1012
# this should fail here because there is a sentinel on the epoch
1009
1013
# if the epoch has been used then it cannot be set.
1010
1014
mdates .set_epoch ('0000-01-01' )
1011
1015
1012
- # use private method to clear the epoch and allow it to be set...
1013
1016
mdates ._reset_epoch_test_example ()
1014
1017
mdates .set_epoch ('1970-01-01' )
1015
1018
dt = (date - np .datetime64 ('1970-01-01' )).astype ('datetime64[D]' )
You can’t perform that action at this time.
0 commit comments