8000
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.
1 parent 7d5754e commit 7cf7368Copy full SHA for 7cf7368
lib/matplotlib/tests/test_dates.py
@@ -1004,12 +1004,15 @@ def test_datetime64_in_list():
1004
def test_change_epoch():
1005
date = np.datetime64('2000-01-01')
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
+
1011
with pytest.raises(RuntimeError):
1012
# this should fail here because there is a sentinel on the epoch
1013
# if the epoch has been used then it cannot be set.
1014
mdates.set_epoch('0000-01-01')
1015
- # use private method to clear the epoch and allow it to be set...
1016
mdates._reset_epoch_test_example()
1017
mdates.set_epoch('1970-01-01')
1018
dt = (date - np.datetime64('1970-01-01')).astype('datetime64[D]')
0 commit comments