From 80e1f06594c376a996ae7eb9c7ae26e18fb3d4c5 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Wed, 14 Jul 2004 00:43:51 +0000 Subject: [PATCH] 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(). --- Lib/test/test_strptime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_strptime.py b/Lib/test/test_strptime.py index 4333b1b63a7..5aaa9a70e43 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