mirror of https://github.com/python/cpython
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:
parent
c0ed9c4956
commit
80e1f06594
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue