Commit bb756780 authored by R David Murray's avatar R David Murray

#14796: fix failure of new calendar test on windows.

parent 949d8c98
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment