Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d62a514

Browse files
committed
#17877: merge with 3.3.
2 parents 0fbdf26 + 6bcc0f1 commit d62a514

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Lib/test/test_email/test_utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import time
55
import unittest
66
import sys
7+
import os.path
78

89
class DateTimeTests(unittest.TestCase):
910

@@ -123,6 +124,9 @@ def test_localtime_epoch_notz_daylight_false(self):
123124
# XXX: Need a more robust test for Olson's tzdata
124125
@unittest.skipIf(sys.platform.startswith('win'),
125126
"Windows does not use Olson's TZ database")
127+
@unittest.skipUnless(os.path.exists('/usr/share/zoneinfo') or
128+
os.path.exists('/usr/lib/zoneinfo'),
129+
"Can't find the Olson's TZ database")
126130
@test.support.run_with_tz('Europe/Kiev')
127131
def test_variable_tzname(self):
128132
t0 = datetime.datetime(1984, 1, 1, tzinfo=datetime.timezone.utc)

0 commit comments

Comments
 (0)