mirror of
https://github.com/python/cpython.git
synced 2024-12-14 12:26:47 +08:00
#14796: fix failure of new calendar test on windows.
This commit is contained in:
parent
949d8c986e
commit
bb75678003
@ -353,8 +353,9 @@ class OutputTestCase(unittest.TestCase):
|
||||
|
||||
def test_yeardatescalendar(self):
|
||||
def shrink(cal):
|
||||
return [[[' '.join((d.strftime('%D')
|
||||
for d in z)) for z in y] for y in x] for x in cal]
|
||||
return [[[' '.join('{:02d}/{:02d}/{}'.format(
|
||||
d.month, d.day, str(d.year)[-2:]) for d in z)
|
||||
for z in y] for y in x] for x in cal]
|
||||
self.assertEqual(
|
||||
shrink(calendar.Calendar().yeardatescalendar(2004)),
|
||||
result_2004_dates
|
||||
|
Loading…
Reference in New Issue
Block a user