Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
bpo-35171: Fix test_TimeRE_recreation_timezone failure on some systems
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.
  • Loading branch information
Alexey Izbyshev
Alexey Izbyshev committed Nov 5, 2018
commit 8346116b6426256d04847dd88b138d24edac1743
2 changes: 1 addition & 1 deletion Lib/test/test_strptime.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ def test_TimeRE_recreation_locale(self):
finally:
locale.setlocale(locale.LC_TIME, locale_info)

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