Skip to content

Commit ffbce43

Browse files
miss-islingtonAlexey Izbyshev
andauthored
closes bpo-35171: Fix test_TimeRE_recreation_timezone failure on some systems. (GH-10347)
The test depended on '/usr/share/zoneinfo/posixrules' or equivalent because it set TZ without explicit DST transition rules. At least on OpenSUSE Tumbleweed that file is linked to '/etc/localtime', making the test fail with certain local timezones, such as 'Europe/Moscow' which doesn't have DST transitions since 2011. (cherry picked from commit f1b9ad3) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
1 parent 3e3e1a2 commit ffbce43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_strptime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ def test_TimeRE_recreation_locale(self):
580580
finally:
581581
locale.setlocale(locale.LC_TIME, locale_info)
582582

583-
@support.run_with_tz('STD-1DST')
583+
@support.run_with_tz('STD-1DST,M4.1.0,M10.1.0')
584584
def test_TimeRE_recreation_timezone(self):
585585
# The TimeRE instance should be recreated upon changing the timezone.
586586
oldtzname = time.tzname

0 commit comments

Comments
 (0)