Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b61e76a + 297921a commit 3d5027dCopy full SHA for 3d5027d
1 file changed
lib/matplotlib/tests/test_dates.py
@@ -1095,12 +1095,15 @@ def test_datetime64_in_list():
1095
def test_change_epoch():
1096
date = np.datetime64('2000-01-01')
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
+
1102
with pytest.raises(RuntimeError):
1103
# this should fail here because there is a sentinel on the epoch
1104
# if the epoch has been used then it cannot be set.
1105
mdates.set_epoch('0000-01-01')
1106
- # use private method to clear the epoch and allow it to be set...
1107
mdates._reset_epoch_test_example()
1108
mdates.set_epoch('1970-01-01')
1109
dt = (date - np.datetime64('1970-01-01')).astype('datetime64[D]')
0 commit comments