[Python-checkins] python/dist/src/Lib/test test_strptime.py, 1.25,
1.26
bcannon at users.sourceforge.net
bcannon at users.sourceforge.net
Wed Jul 14 02:43:54 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32411/Lib/test
Modified Files:
test_strptime.py
Log Message:
It helps when doing checks if something is in a tuple of strings that if you
put everything in the tuple in caps to use str.upper() instead of str.lower().
Index: test_strptime.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_strptime.py,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** test_strptime.py 12 Jul 2004 19:34:02 -0000 1.25
--- test_strptime.py 14 Jul 2004 00:43:51 -0000 1.26
***************
*** 281,285 ****
return #MacOS9 has severely broken timezone support.
tz_name = time.tzname[0]
! if tz_name.lower() in ("UTC", "GMT"):
return
try:
--- 281,285 ----
return #MacOS9 has severely broken timezone support.
tz_name = time.tzname[0]
! if tz_name.upper() in ("UTC", "GMT"):
return
try:
More information about the Python-checkins
mailing list