[Python-checkins] python/dist/src/Lib/test test_strptime.py,1.19,1.19.2.1

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Thu, 31 Jul 2003 12:38:38 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv23085

Modified Files:
      Tag: release23-branch
	test_strptime.py 
Log Message:
Skip timezone test on MacOS9. Fixes #776205.

Index: test_strptime.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_strptime.py,v
retrieving revision 1.19
retrieving revision 1.19.2.1
diff -C2 -d -r1.19 -r1.19.2.1
*** test_strptime.py	24 Jul 2003 06:27:17 -0000	1.19
--- test_strptime.py	31 Jul 2003 19:38:26 -0000	1.19.2.1
***************
*** 5,8 ****
--- 5,9 ----
  import locale
  import re
+ import sys
  from test import test_support
  
***************
*** 307,310 ****
--- 308,314 ----
          strp_output = _strptime.strptime(strf_output, "%Z")
          locale_time = _strptime.LocaleTime()
+         if sys.platform == 'mac':
+             # Timezones don't really work on MacOS9
+             return
          if time.tzname[0] != time.tzname[1] or not time.daylight:
              self.failUnless(strp_output[8] == time_tuple[8],