File: fix-tz.patch

package info (click to toggle)
python-croniter 6.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 408 kB
  • sloc: python: 3,912; makefile: 20; sh: 19
file content (25 lines) | stat: -rw-r--r-- 969 bytes parent folder | download
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
@@ -82,7 +82,7 @@
 
     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 * * *"))
@@ -95,7 +95,7 @@
             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)