diff options
author | Guido van Rossum <guido@python.org> | 1999-04-08 20:22:46 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-04-08 20:22:46 (GMT) |
commit | 0b7dd08d50a275300207d4ff5d91a0e23216661c (patch) | |
tree | 1cae5b0527ba38776d11152c78a0ab00c90e00d1 /Lib | |
parent | 437cfe842f189fa501a6269cabdc866b78519b56 (diff) | |
download | cpython-0b7dd08d50a275300207d4ff5d91a0e23216661c.zip cpython-0b7dd08d50a275300207d4ff5d91a0e23216661c.tar.gz cpython-0b7dd08d50a275300207d4ff5d91a0e23216661c.tar.bz2 |
# Bah. The same problem occurred a second time.
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/test/test_strftime.py | 2 |
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]) |