def test_end_dst_double_occurrence(self):
cron_expression = "30 1 * * * *"
timezone = pytz.timezone("Europe/London")
start = dt.datetime.strptime('2015-10-25T00:00:00',
"%Y-%m-%dT%H:%M:%S")
start = timezone.localize(start, is_dst=True)
testee = tzcron.Schedule(cron_expression, timezone, start)
self.assertRaises(pytz.AmbiguousTimeError,
lambda: next(testee))
评论列表
文章目录