Skip to content

Commit d0e3105

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 54bcb6c commit d0e3105

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
@@ -641,7 +641,7 @@ def test_TimeRE_recreation_locale(self):
641641
finally:
642642
locale.setlocale(locale.LC_TIME, locale_info)
643643

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

0 commit comments

Comments
 (0)