From: Guido van Rossum Date: Sat, 15 Mar 2003 12:01:52 +0000 (+0000) Subject: If time.tzset doesn't exist, don't test it. X-Git-Tag: v2.3c1~1461 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d2b738ee7de3d2dc690476f63d12dd9eb7955abf;p=thirdparty%2FPython%2Fcpython.git If time.tzset doesn't exist, don't test it. --- diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py index 4459f3e02b13..17d4806ecbf1 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