From: Pablo Galindo Salgado Date: Fri, 12 Jan 2024 10:46:17 +0000 (+0000) Subject: gh-113027: Fix timezone check in test_variable_tzname in test_email (GH-113835) X-Git-Tag: v3.13.0a3~75 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=29e2839cd6af5c90cfd7abe800b045b6dcee0c05;p=thirdparty%2FPython%2Fcpython.git gh-113027: Fix timezone check in test_variable_tzname in test_email (GH-113835) Co-authored-by: Serhiy Storchaka --- diff --git a/Lib/test/test_email/test_utils.py b/Lib/test/test_email/test_utils.py index 0f1c3a84e61a..d04b3909efa6 100644 --- a/Lib/test/test_email/test_utils.py +++ b/Lib/test/test_email/test_utils.py @@ -147,7 +147,7 @@ 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': + if t1.tzname() in ('Europe', 'UTC'): self.skipTest("Can't find a Kyiv timezone database") self.assertEqual(t1.tzname(), 'MSK') t0 = datetime.datetime(1994, 1, 1, tzinfo=datetime.timezone.utc)