From: Guido van Rossum Date: Thu, 8 Apr 1999 20:22:46 +0000 (+0000) Subject: # Bah. The same problem occurred a second time. X-Git-Tag: v1.5.2c1~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0b7dd08d50a275300207d4ff5d91a0e23216661c;p=thirdparty%2FPython%2Fcpython.git # Bah. The same problem occurred a second time. --- diff --git a/Lib/test/test_strftime.py b/Lib/test/test_strftime.py index 1ccb84ba7c5d..c713d05cc0c6 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])