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

Skip to content

Commit d2b738e

Browse files
committed
If time.tzset doesn't exist, don't test it.
1 parent d11b62e commit d2b738e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/test/test_time.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ def test_asctime(self):
5353
self.assertRaises(TypeError, time.asctime, 0)
5454

5555
def test_tzset(self):
56+
if not hasattr(time, "tzset"):
57+
return # Can't test this; don't want the test suite to fail
58+
5659
from os import environ
5760

5861
# Epoch time of midnight Dec 25th 2002. Never DST in northern

0 commit comments

Comments
 (0)