]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] gh-113027: Fix test_variable_tzname in test_email (GH-113821) (#126438)
authorPetr Viktorin <encukou@gmail.com>
Tue, 5 Nov 2024 19:55:43 +0000 (20:55 +0100)
committerGitHub <noreply@github.com>
Tue, 5 Nov 2024 19:55:43 +0000 (19:55 +0000)
Lib/test/test_email/test_utils.py

index 78afb358035e8122cd7d76b9f7bc40d260239f60..51a5bac6dfaa8cf8534db53dee9e3392a8ffe7a2 100644 (file)
@@ -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)