Relax %Y test.

This commit is contained in:
Alexander Belopolsky 2011-05-02 13:48:09 -04:00
parent 66746cb222
commit 4409493d73
1 changed files with 2 additions and 2 deletions

View File

@ -1291,8 +1291,8 @@ def test_bool(self):
def test_strftime_y2k(self):
for y in (1, 49, 70, 99, 100, 999, 1000, 1970):
self.assertEqual(self.theclass(y, 1, 1).strftime("%Y"),
'%04d' % y)
self.assertIn(self.theclass(y, 1, 1).strftime("%Y"),
[str(y),'%04d' % y])
def test_replace(self):
cls = self.theclass