diff options
| author | Pablo Galindo Salgado <Pablogsal@gmail.com> | 2024-01-12 10:46:17 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-12 10:46:17 (GMT) |
| commit | 29e2839cd6af5c90cfd7abe800b045b6dcee0c05 (patch) | |
| tree | fd3ca4a4dc891fd3da6686a9824b5e0a45c6bea0 /Lib/test/test_email/test_utils.py | |
| parent | de777e490fb356d7bcc7c907141c20a5135d97df (diff) | |
| download | cpython-29e2839cd6af5c90cfd7abe800b045b6dcee0c05.zip cpython-29e2839cd6af5c90cfd7abe800b045b6dcee0c05.tar.gz cpython-29e2839cd6af5c90cfd7abe800b045b6dcee0c05.tar.bz2 | |
gh-113027: Fix timezone check in test_variable_tzname in test_email (GH-113835)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Lib/test/test_email/test_utils.py')
| -rw-r--r-- | Lib/test/test_email/test_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_email/test_utils.py b/Lib/test/test_email/test_utils.py index 0f1c3a8..d04b390 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) |
