mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue