Skip to content
Permalink
Browse files
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.
  • Loading branch information
izbyshev authored and benjaminp committed Nov 6, 2018
1 parent f1d3efc commit f1b9ad3d38c11676b45edcbf2369239bae436e56
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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

0 comments on commit f1b9ad3

Please sign in to comment.