mirror of
https://github.com/python/cpython
synced 2024-09-06 06:23:30 +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
|
@ -280,7 +280,7 @@ def test_bad_timezone(self):
|
|||
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 a new issue