From: Victor Stinner Date: Sat, 12 Mar 2016 07:16:48 +0000 (+0100) Subject: Revert change 291d47954618 X-Git-Tag: v3.6.0a1~497 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=15a83e845fa2421428f9d06c6fe6e85fde59d22c;p=thirdparty%2FPython%2Fcpython.git Revert change 291d47954618 Revert: "Always test datetime.strftime("%4Y") Issue #13305: Always test datetime.datetime.strftime("%4Y") for years < 1900." In fact, strftime("%4Y") fails on most platforms. --- diff --git a/Lib/test/datetimetester.py b/Lib/test/datetimetester.py index 0be1af4c6ee2..b49942ac7373 100644 --- a/Lib/test/datetimetester.py +++ b/Lib/test/datetimetester.py @@ -1422,8 +1422,8 @@ class TestDate(HarmlessMixedComparison, unittest.TestCase): if d.strftime("%Y") != '%04d' % y: # Year 42 returns '42', not padded self.assertEqual(d.strftime("%Y"), '%d' % y) - # '0042' is obtained anyway - self.assertEqual(d.strftime("%4Y"), '%04d' % y) + # '0042' is obtained anyway + self.assertEqual(d.strftime("%4Y"), '%04d' % y) def test_replace(self): cls = self.theclass