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():
10951095def test_change_epoch ():
10961096 date = np .datetime64 ('2000-01-01' )
10971097
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+
10981102 with pytest .raises (RuntimeError ):
10991103 # this should fail here because there is a sentinel on the epoch
11001104 # if the epoch has been used then it cannot be set.
11011105 mdates .set_epoch ('0000-01-01' )
11021106
1103- # use private method to clear the epoch and allow it to be set...
11041107 mdates ._reset_epoch_test_example ()
11051108 mdates .set_epoch ('1970-01-01' )
11061109 dt = (date - np .datetime64 ('1970-01-01' )).astype ('datetime64[D]' )
You can’t perform that action at this time.
0 commit comments