commit | 4409493d737440843f4257229fbf01fc845458f9 | [log] [tgz] |
---|---|---|
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | Mon May 02 13:48:09 2011 -0400 |
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | Mon May 02 13:48:09 2011 -0400 |
tree | d277ca85fda070495fcd6ba2ce2e59e2c0dbfdbc | |
parent | 66746cb2223a016d353746b1492d7be91f4d81f2 [diff] [blame] |
Relax %Y test.
diff --git a/Lib/test/datetimetester.py b/Lib/test/datetimetester.py index 4a62bd4..f91e8fc 100644 --- a/Lib/test/datetimetester.py +++ b/Lib/test/datetimetester.py
@@ -1291,8 +1291,8 @@ 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