mirror of https://github.com/python/cpython
gh-113027: Fix timezone check in test_variable_tzname in test_email (GH-113835)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
de777e490f
commit
29e2839cd6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue