[Python-checkins] python/dist/src/Lib/test test_time.py,1.12,1.13
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Sat, 15 Mar 2003 04:01:55 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv28372
Modified Files:
test_time.py
Log Message:
If time.tzset doesn't exist, don't test it.
Index: test_time.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_time.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** test_time.py 14 Mar 2003 21:51:33 -0000 1.12
--- test_time.py 15 Mar 2003 12:01:52 -0000 1.13
***************
*** 54,57 ****
--- 54,60 ----
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