Commit 4409493d authored by Alexander Belopolsky's avatar Alexander Belopolsky

Relax %Y test.

parent 66746cb2
...@@ -1291,8 +1291,8 @@ class TestDate(HarmlessMixedComparison, unittest.TestCase): ...@@ -1291,8 +1291,8 @@ class TestDate(HarmlessMixedComparison, unittest.TestCase):
def test_strftime_y2k(self): def test_strftime_y2k(self):
for y in (1, 49, 70, 99, 100, 999, 1000, 1970): for y in (1, 49, 70, 99, 100, 999, 1000, 1970):
self.assertEqual(self.theclass(y, 1, 1).strftime("%Y"), self.assertIn(self.theclass(y, 1, 1).strftime("%Y"),
'%04d' % y) [str(y),'%04d' % y])
def test_replace(self): def test_replace(self):
cls = self.theclass cls = self.theclass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment