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().
This commit is contained in:
Brett Cannon 2004-07-14 00:43:51 +00:00
parent c0ed9c4956
commit 80e1f06594
1 changed files with 1 additions and 1 deletions

View File

@ -280,7 +280,7 @@ class StrptimeTests(unittest.TestCase):
if sys.platform == "mac":
return #MacOS9 has severely broken timezone support.
tz_name = time.tzname[0]
if tz_name.lower() in ("UTC", "GMT"):
if tz_name.upper() in ("UTC", "GMT"):
return
try:
original_tzname = time.tzname