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 @@ -1095,12 +1095,15 @@ def test_datetime64_in_list():
1095
1095
def test_change_epoch ():
1096
1096
date = np .datetime64 ('2000-01-01' )
1097
1097
1098
+ # use private method to clear the epoch and allow it to be set...
1099
+ mdates ._reset_epoch_test_example ()
1100
+ mdates .get_epoch () # Set default.
1101
+
1098
1102
with pytest .raises (RuntimeError ):
1099
1103
# this should fail here because there is a sentinel on the epoch
1100
1104
# if the epoch has been used then it cannot be set.
1101
1105
mdates .set_epoch ('0000-01-01' )
1102
1106
1103
- # use private method to clear the epoch and allow it to be set...
1104
1107
mdates ._reset_epoch_test_example ()
1105
1108
mdates .set_epoch ('1970-01-01' )
1106
1109
dt = (date - np .datetime64 ('1970-01-01' )).astype ('datetime64[D]' )
You can’t perform that action at this time.
0 commit comments