summaryrefslogtreecommitdiffstats
path: root/Lib/test/datetimetester.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-11 21:36:14 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-03-11 21:36:14 (GMT)
commit474ebbbe50ea3247ad120324874b8b32d5fa550d (patch)
tree4264a3136e6e3b677dafe86cabe2dd763c442b69 /Lib/test/datetimetester.py
parent2c2a4e63d794eb55e9163322ea11b9765e9e0db5 (diff)
downloadcpython-474ebbbe50ea3247ad120324874b8b32d5fa550d.zip
cpython-474ebbbe50ea3247ad120324874b8b32d5fa550d.tar.gz
cpython-474ebbbe50ea3247ad120324874b8b32d5fa550d.tar.bz2
Always test datetime.strftime("%4Y")
Issue #13305: Always test datetime.datetime.strftime("%4Y") for years < 1900.
Diffstat (limited to 'Lib/test/datetimetester.py')
-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 b49942a..0be1af4 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