Tweaks to cope with strftime returning 0 without error for %Z
diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py
index 85ea6ee..acc4d41 100644
--- a/Lib/test/test_time.py
+++ b/Lib/test/test_time.py
@@ -16,8 +16,11 @@
for directive in ('a', 'A', 'b', 'B', 'c', 'd', 'H', 'I',
'j', 'm', 'M', 'p', 'S',
'U', 'w', 'W', 'x', 'X', 'y', 'Y', 'Z', '%'):
- format = '%' + directive
- time.strftime(format, tt)
+ format = ' %' + directive
+ try:
+ time.strftime(format, tt)
+ except ValueError:
+ print 'conversion specifier:', format, ' failed.'
time.timezone
time.tzname