Commit f34e5ee2 authored by Guido van Rossum's avatar Guido van Rossum

If time.tzset doesn't exist, don't test it.

parent edd52fc0
......@@ -53,6 +53,9 @@ class TimeTestCase(unittest.TestCase):
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment