summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_strftime.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-04-08 20:22:46 (GMT)
committerGuido van Rossum <guido@python.org>1999-04-08 20:22:46 (GMT)
commit0b7dd08d50a275300207d4ff5d91a0e23216661c (patch)
tree1cae5b0527ba38776d11152c78a0ab00c90e00d1 /Lib/test/test_strftime.py
parent437cfe842f189fa501a6269cabdc866b78519b56 (diff)
downloadcpython-0b7dd08d50a275300207d4ff5d91a0e23216661c.zip
cpython-0b7dd08d50a275300207d4ff5d91a0e23216661c.tar.gz
cpython-0b7dd08d50a275300207d4ff5d91a0e23216661c.tar.bz2
# Bah. The same problem occurred a second time.
Diffstat (limited to 'Lib/test/test_strftime.py')
-rwxr-xr-xLib/test/test_strftime.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_strftime.py b/Lib/test/test_strftime.py
index 1ccb84b..c713d05 100755
--- a/Lib/test/test_strftime.py
+++ b/Lib/test/test_strftime.py
@@ -116,7 +116,7 @@ def strftest(now):
if re.match(e[1], result):
if verbose:
print "Supports nonstandard '%s' format (%s)" % (e[0], e[2])
- elif result[0] == '%':
+ elif not result or result[0] == '%':
if verbose:
print "Does not appear to support '%s' format (%s)" % (e[0],
e[2])