Commit 9b112799 authored by Guido van Rossum's avatar Guido van Rossum

On Windows, we suddenly find, strftime() may return "" for an

unsupported format string.  (I guess this is because the logic for
deciding whether to reallocate the buffer or not has been improved.)
This caused the test code to crash on result[0].  Fix this by assuming
an empty result also means the format is not supported.
parent 60cc90ec
......@@ -99,7 +99,7 @@ def strftest(now):
print "Standard '%s' format gave error:" % e[0], error
continue
if re.match(e[1], result): continue
if result[0] == '%':
if not result or result[0] == '%':
print "Does not support standard '%s' format (%s)" % (e[0], e[2])
else:
print "Conflict for %s (%s):" % (e[0], e[2])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment