1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Description: Fix tz
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2023-10-04
--- python-croniter-1.3.15.orig/src/croniter/tests/test_croniter_range.py
+++ python-croniter-1.3.15/src/croniter/tests/test_croniter_range.py
@@ -81,7 +81,7 @@ class CroniterRangeTest(base.TestCase):
def test_timezone_dst(self):
""" Test across DST transition, which technically is a timzone change. """
- tz = pytz.timezone("US/Eastern")
+ tz = pytz.timezone("America/New_York")
start = tz.localize(datetime(2020, 10, 30))
stop = tz.localize(datetime(2020, 11, 10))
res = list(croniter_range(start, stop, '0 0 * * *'))
@@ -93,7 +93,7 @@ class CroniterRangeTest(base.TestCase):
""" Defined this in another branch. single-use-version """
tzinfo = kw.pop("tzinfo")
return tzinfo.localize(datetime(*args))
- tz = pytz.timezone("US/Eastern")
+ tz = pytz.timezone("America/New_York")
cron = "0 3 * * *"
start = datetime_tz(2020, 3, 7, tzinfo=tz)
end = datetime_tz(2020, 3, 11, tzinfo=tz)
|