diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-11-05 20:59:07 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-05 20:59:07 -0800 |
commit | ffbce43c1aa457b5976665eb2e47771198c7af06 (patch) | |
tree | 6372d653fb5f7564c25dd1a79192fcf7192998ad /Lib | |
parent | 3e3e1a27f769b3385853fbcad6749e71ca7f3ce3 (diff) | |
download | cpython-git-ffbce43c1aa457b5976665eb2e47771198c7af06.tar.gz |
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 f1b9ad3d38c11676b45edcbf2369239bae436e56)
Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_strptime.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_strptime.py b/Lib/test/test_strptime.py index 48ad5daec4..a7af85a6d5 100644 --- a/Lib/test/test_strptime.py +++ b/Lib/test/test_strptime.py @@ -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 |