diff options
author | Guido van Rossum <guido@python.org> | 2003-03-15 12:01:52 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2003-03-15 12:01:52 (GMT) |
commit | d2b738ee7de3d2dc690476f63d12dd9eb7955abf (patch) | |
tree | 2fe89137b3c06146751af3ae463e8aeed3e84e91 /Lib/test/test_time.py | |
parent | d11b62edd077428935f93b36ae8d65ebaa684cca (diff) | |
download | cpython-d2b738ee7de3d2dc690476f63d12dd9eb7955abf.zip cpython-d2b738ee7de3d2dc690476f63d12dd9eb7955abf.tar.gz cpython-d2b738ee7de3d2dc690476f63d12dd9eb7955abf.tar.bz2 |
If time.tzset doesn't exist, don't test it.
Diffstat (limited to 'Lib/test/test_time.py')
-rw-r--r-- | Lib/test/test_time.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py index 4459f3e..17d4806 100644 --- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py @@ -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 |