summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-12 07:16:48 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-03-12 07:16:48 (GMT)
commit15a83e845fa2421428f9d06c6fe6e85fde59d22c (patch)
tree1e59d74071f6f92078c1e04bc22df7f5419b8aca /Lib
parent25caed546d1741063b3d4dce505d0d590fd473e3 (diff)
downloadcpython-15a83e845fa2421428f9d06c6fe6e85fde59d22c.zip
cpython-15a83e845fa2421428f9d06c6fe6e85fde59d22c.tar.gz
cpython-15a83e845fa2421428f9d06c6fe6e85fde59d22c.tar.bz2
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.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/datetimetester.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/datetimetester.py b/Lib/test/datetimetester.py
index 0be1af4..b49942a 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