From: Petr Viktorin Date: Tue, 5 Nov 2024 19:55:43 +0000 (+0100) Subject: [3.10] gh-113027: Fix test_variable_tzname in test_email (GH-113821) (#126438) X-Git-Tag: v3.10.16~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5f24da9d75bb0150781b17ee4706e93e6bb364ea;p=thirdparty%2FPython%2Fcpython.git [3.10] gh-113027: Fix test_variable_tzname in test_email (GH-113821) (#126438) --- diff --git a/Lib/test/test_email/test_utils.py b/Lib/test/test_email/test_utils.py index 78afb358035e..51a5bac6dfaa 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)