cpython: fd9ce1d4b820 (original) (raw)

Mercurial > cpython

changeset 87226:fd9ce1d4b820

Issue #19634: time.strftime("%y") now raises a ValueError on AIX when given a year before 1900. [#19634]

Victor Stinner victor.stinner@gmail.com
date Sun, 17 Nov 2013 23:39:21 +0100
parents 00766fa3366b
children f2fdc675deab
files Lib/test/test_strftime.py Misc/NEWS Modules/timemodule.c
diffstat 3 files changed, 24 insertions(+), 9 deletions(-)[+] [-] Lib/test/test_strftime.py 16 Misc/NEWS 3 Modules/timemodule.c 14

line wrap: on

line diff

--- a/Lib/test/test_strftime.py +++ b/Lib/test/test_strftime.py @@ -182,15 +182,13 @@ class Y1900Tests(unittest.TestCase): a date before 1900 is passed with a format string containing "%y" """

-

def test_y_1900(self): self.assertEqual(

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -50,6 +50,9 @@ Core and Builtins Library ------- +- Issue #19634: time.strftime("%y") now raises a ValueError on AIX when given a

--- a/Modules/timemodule.c +++ b/Modules/timemodule.c @@ -650,6 +650,20 @@ time_strftime(PyObject *self, PyObject * return NULL; } } +#elif defined(_AIX)

#endif fmtlen = time_strlen(fmt);