Commits

Anonymous committed 3400aa1

# Bah. The same problem occurred a second time.

Comments (0)

Files changed (1)

Lib/test/test_strftime.py

         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])