Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 949d8c9 commit bb75678Copy full SHA for bb75678
1 file changed
Lib/test/test_calendar.py
@@ -353,8 +353,9 @@ def test_output_htmlcalendar_encoding_default(self):
353
354
def test_yeardatescalendar(self):
355
def shrink(cal):
356
- return [[[' '.join((d.strftime('%D')
357
- 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)
358
+ for z in y] for y in x] for x in cal]
359
self.assertEqual(
360
shrink(calendar.Calendar().yeardatescalendar(2004)),
361
result_2004_dates
0 commit comments