mirror of https://github.com/python/cpython.git
Relax %Y test.
This commit is contained in:
parent
66746cb222
commit
4409493d73
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue