()
| 259 | |
| 260 | |
| 261 | def test_RRuleLocator_close_minmax(): |
| 262 | # if d1 and d2 are very close together, rrule cannot create |
| 263 | # reasonable tick intervals; ensure that this is handled properly |
| 264 | rrule = mdates.rrulewrapper(dateutil.rrule.SECONDLY, interval=5) |
| 265 | loc = mdates.RRuleLocator(rrule) |
| 266 | d1 = datetime.datetime(year=2020, month=1, day=1) |
| 267 | d2 = datetime.datetime(year=2020, month=1, day=1, microsecond=1) |
| 268 | expected = ['2020-01-01 00:00:00+00:00', |
| 269 | '2020-01-01 00:00:00.000001+00:00'] |
| 270 | assert list(map(str, mdates.num2date(loc.tick_values(d1, d2)))) == expected |
| 271 | |
| 272 | |
| 273 | @image_comparison(['DateFormatter_fractionalSeconds.png'], style='mpl20') |
nothing calls this directly
no test coverage detected
searching dependent graphs…