From 0b7dd08d50a275300207d4ff5d91a0e23216661c Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 8 Apr 1999 20:22:46 +0000 Subject: # Bah. The same problem occurred a second time. --- Lib/test/test_strftime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/test_strftime.py') diff --git a/Lib/test/test_strftime.py b/Lib/test/test_strftime.py index 1ccb84ba7c..c713d05cc0 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]) -- cgit v1.2.1