summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2024-11-05 19:55:43 (GMT)
committerGitHub <noreply@github.com>2024-11-05 19:55:43 (GMT)
commit5f24da9d75bb0150781b17ee4706e93e6bb364ea (patch)
treef477919ac9a78f92b5d2f9ef7a36a8f0e8d7fd4e
parent9286ab3a107ea41bd3f3c3682ce2512692bdded8 (diff)
downloadcpython-5f24da9d75bb0150781b17ee4706e93e6bb364ea.zip
cpython-5f24da9d75bb0150781b17ee4706e93e6bb364ea.tar.gz
cpython-5f24da9d75bb0150781b17ee4706e93e6bb364ea.tar.bz2
[3.10] gh-113027: Fix test_variable_tzname in test_email (GH-113821) (#126438)
-rw-r--r--Lib/test/test_email/test_utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_email/test_utils.py b/Lib/test/test_email/test_utils.py
index 78afb35..51a5bac 100644
--- a/Lib/test/test_email/test_utils.py
+++ b/Lib/test/test_email/test_utils.py
@@ -152,6 +152,8 @@ class LocaltimeTests(unittest.TestCase):
def test_variable_tzname(self):
t0 = datetime.datetime(1984, 1, 1, tzinfo=datetime.timezone.utc)
t1 = utils.localtime(t0)
+ if t1.tzname() == 'Europe':
+ self.skipTest("Can't find a Kyiv timezone database")
self.assertEqual(t1.tzname(), 'MSK')
t0 = datetime.datetime(1994, 1, 1, tzinfo=datetime.timezone.utc)
t1 = utils.localtime(t0)