diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py index 4459f3e02b1..17d4806ecbf 100644 --- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py @@ -53,6 +53,9 @@ def test_asctime(self): self.assertRaises(TypeError, time.asctime, 0) def test_tzset(self): + if not hasattr(time, "tzset"): + return # Can't test this; don't want the test suite to fail + from os import environ # Epoch time of midnight Dec 25th 2002. Never DST in northern