Commit ffbce43c authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub

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 f1b9ad3d)
Co-authored-by: default avatarAlexey Izbyshev <izbyshev@ispras.ru>
parent 3e3e1a27
......@@ -580,7 +580,7 @@ class CacheTests(unittest.TestCase):
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment