[Python-checkins] cpython: Relax %Y test.
alexander.belopolsky
python-checkins at python.org
Mon May 2 19:48:34 CEST 2011
http://hg.python.org/cpython/rev/777f4bb3ec3b
changeset: 69790:777f4bb3ec3b
user: Alexander Belopolsky <alexander.belopolsky at gmail.com>
date: Mon May 02 13:48:09 2011 -0400
summary:
Relax %Y test.
files:
Lib/test/datetimetester.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/test/datetimetester.py b/Lib/test/datetimetester.py
--- 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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list