From: Brett Cannon Date: Wed, 14 Jul 2004 00:43:51 +0000 (+0000) Subject: It helps when doing checks if something is in a tuple of strings that if you X-Git-Tag: v2.4a2~280 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80e1f06594c376a996ae7eb9c7ae26e18fb3d4c5;p=python 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(). --- diff --git a/Lib/test/test_strptime.py b/Lib/test/test_strptime.py index 4333b1b63a..5aaa9a70e4 100644 --- a/Lib/test/test_strptime.py +++ b/Lib/test/test_strptime.py @@ -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