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.
1 parent b5c9aa4 commit a2a8dc2Copy full SHA for a2a8dc2
1 file changed
lib/matplotlib/tests/test_dates.py
@@ -442,7 +442,6 @@ def tz_convert(dt_list, tzinfo):
442
443
_test_date2num_dst(date_range, tz_convert)
444
445
-
446
def test_date2num_dst_pandas():
447
# Test for github issue #3896, but in date2num around DST transitions
448
# with a timezone-aware pandas date_range object.
@@ -456,6 +455,13 @@ def tz_convert(*args):
456
455
457
_test_date2num_dst(pd.date_range, tz_convert)
458
+def test_DayLocator():
459
+ assert_raises(ValueError, mdates.DayLocator, interval=-1)
460
+ assert_raises(ValueError, mdates.DayLocator, interval=-1.5)
461
+ assert_raises(ValueError, mdates.DayLocator, interval=0)
462
+ assert_raises(ValueError, mdates.DayLocator, interval=1.3)
463
+ mdates.DayLocator(interval=1.0)
464
+
465
466
if __name__ == '__main__':
467
import nose
0 commit comments