diff options
author | R David Murray <rdmurray@bitdance.com> | 2012-05-30 12:10:54 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2012-05-30 12:10:54 (GMT) |
commit | bb7567800318888bb60926686d90f3e2d942a20f (patch) | |
tree | 9d0edb3a7780736d3552fe566a02987b154d0796 /Lib/test/test_calendar.py | |
parent | 949d8c986ec8792fbe63d8bd2bb5332406c5af9a (diff) | |
download | cpython-bb7567800318888bb60926686d90f3e2d942a20f.zip cpython-bb7567800318888bb60926686d90f3e2d942a20f.tar.gz cpython-bb7567800318888bb60926686d90f3e2d942a20f.tar.bz2 |
#14796: fix failure of new calendar test on windows.
Diffstat (limited to 'Lib/test/test_calendar.py')
-rw-r--r-- | Lib/test/test_calendar.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_calendar.py b/Lib/test/test_calendar.py index d00adde..e0f6399 100644 --- a/Lib/test/test_calendar.py +++ b/Lib/test/test_calendar.py @@ -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 |