summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2011-05-02 17:48:09 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2011-05-02 17:48:09 (GMT)
commit4409493d737440843f4257229fbf01fc845458f9 (patch)
treed277ca85fda070495fcd6ba2ce2e59e2c0dbfdbc /Lib/test
parent66746cb2223a016d353746b1492d7be91f4d81f2 (diff)
downloadcpython-4409493d737440843f4257229fbf01fc845458f9.zip
cpython-4409493d737440843f4257229fbf01fc845458f9.tar.gz
cpython-4409493d737440843f4257229fbf01fc845458f9.tar.bz2
Relax %Y test.
Diffstat (limited to 'Lib/test')
-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 4a62bd4..f91e8fc 100644
--- a/Lib/test/datetimetester.py
+++ b/Lib/test/datetimetester.py
@@ -1291,8 +1291,8 @@ class TestDate(HarmlessMixedComparison, unittest.TestCase):
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