mirror of
https://github.com/python/cpython.git
synced 2025-09-19 07:00:59 +00:00
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.
This commit is contained in:
parent
25caed546d
commit
15a83e845f
1 changed files with 2 additions and 2 deletions
|
@ -1422,8 +1422,8 @@ class TestDate(HarmlessMixedComparison, unittest.TestCase):
|
||||||
if d.strftime("%Y") != '%04d' % y:
|
if d.strftime("%Y") != '%04d' % y:
|
||||||
# Year 42 returns '42', not padded
|
# Year 42 returns '42', not padded
|
||||||
self.assertEqual(d.strftime("%Y"), '%d' % y)
|
self.assertEqual(d.strftime("%Y"), '%d' % y)
|
||||||
# '0042' is obtained anyway
|
# '0042' is obtained anyway
|
||||||
self.assertEqual(d.strftime("%4Y"), '%04d' % y)
|
self.assertEqual(d.strftime("%4Y"), '%04d' % y)
|
||||||
|
|
||||||
def test_replace(self):
|
def test_replace(self):
|
||||||
cls = self.theclass
|
cls = self.theclass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue