mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
Tweaks to cope with strftime returning 0 without error for %Z
This commit is contained in:
parent
f07eaea134
commit
e7038425b1
2 changed files with 6 additions and 3 deletions
|
@ -69,7 +69,7 @@ def strftest(now):
|
|||
nonstandard_expectations = (
|
||||
# These are standard but don't have predictable output
|
||||
('%c', fixasctime(time.asctime(now)), 'near-asctime() format'),
|
||||
('%Z', tz, 'time zone name'),
|
||||
('(%Z)', '(%s)' % tz, 'time zone name'),
|
||||
|
||||
# These are some platform specific extensions
|
||||
('%D', '%02d/%02d/%02d' % (now[1], now[2], (now[0]%100)), 'mm/dd/yy'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue