summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_strptime.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2004-07-14 00:43:51 (GMT)
committerBrett Cannon <bcannon@gmail.com>2004-07-14 00:43:51 (GMT)
commit80e1f06594c376a996ae7eb9c7ae26e18fb3d4c5 (patch)
tree93b19579434639e79ee50bc6ce0a27a5b2359921 /Lib/test/test_strptime.py
parentc0ed9c49563b92316f089f7b4ba5aeba9c78f6b5 (diff)
downloadcpython-80e1f06594c376a996ae7eb9c7ae26e18fb3d4c5.zip
cpython-80e1f06594c376a996ae7eb9c7ae26e18fb3d4c5.tar.gz
cpython-80e1f06594c376a996ae7eb9c7ae26e18fb3d4c5.tar.bz2
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().
Diffstat (limited to 'Lib/test/test_strptime.py')
-rw-r--r--Lib/test/test_strptime.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_strptime.py b/Lib/test/test_strptime.py
index 4333b1b..5aaa9a7 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