summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_strptime.py
diff options
context:
space:
mode:
authorAlexey Izbyshev <izbyshev@ispras.ru>2018-11-06 04:29:07 (GMT)
committerBenjamin Peterson <benjamin@python.org>2018-11-06 04:29:07 (GMT)
commitf1b9ad3d38c11676b45edcbf2369239bae436e56 (patch)
tree166d9bb0fb63bf4f5ca4c3f10614c7bd50189bbf /Lib/test/test_strptime.py
parentf1d3efc2fba704692d539acc3cb0376a1dd9d98f (diff)
downloadcpython-f1b9ad3d38c11676b45edcbf2369239bae436e56.zip
cpython-f1b9ad3d38c11676b45edcbf2369239bae436e56.tar.gz
cpython-f1b9ad3d38c11676b45edcbf2369239bae436e56.tar.bz2
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.
Diffstat (limited to 'Lib/test/test_strptime.py')
-rw-r--r--Lib/test/test_strptime.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_strptime.py b/Lib/test/test_strptime.py
index a3358a4..623da40 100644
--- a/Lib/test/test_strptime.py
+++ b/Lib/test/test_strptime.py
@@ -692,7 +692,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