]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-113027: Fix timezone check in test_variable_tzname in test_email (GH-113835)
authorPablo Galindo Salgado <Pablogsal@gmail.com>
Fri, 12 Jan 2024 10:46:17 +0000 (10:46 +0000)
committerGitHub <noreply@github.com>
Fri, 12 Jan 2024 10:46:17 +0000 (11:46 +0100)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_email/test_utils.py

index 0f1c3a84e61abd302c8e29018a855fdaad37a067..d04b3909efa643816da3f03971e6c4f8ebbd2da2 100644 (file)
@@ -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)