[issue13305] datetime.strftime("%Y") not consistent for years < 1000

STINNER Victor <victor.stinner@haypocalc.com> added the comment: Since the changeset 55a3b563f0dbed04af317f632f7f3c0f6abe175b, test_strptime is failing on "AMD64 Gentoo Wide 3.x" buildbot: ====================================================================== FAIL: test_strptime (test.test_time.TimeTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/buildbot/buildarea/3.x.ochtman-gentoo-amd64/build/Lib/test/test_time.py", line 159, in test_strptime time.strptime(strf_output, format) ValueError: time data 'LMT' does not match format '%Z' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/buildbot/buildarea/3.x.ochtman-gentoo-amd64/build/Lib/test/test_time.py", line 162, in test_strptime (format, strf_output)) AssertionError: conversion specifier '%Z' failed with 'LMT' input. ---------------------------------------------------------------------- http://www.python.org/dev/buildbot/all/builders/AMD64%20Gentoo%20Wide%203.x/... ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13305> _______________________________________
participants (1)
-
STINNER Victor