From c49ebc0d07f47336b3720e546876d0f799ef0f50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Tue, 22 May 2007 17:03:39 +0000 Subject: The HTMLCalendar outputs bytes now, so fix the test accordingly (bytes.strip() always requires an argument). --- Lib/test/test_calendar.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_calendar.py b/Lib/test/test_calendar.py index 8cbf5e0..015b59f 100644 --- a/Lib/test/test_calendar.py +++ b/Lib/test/test_calendar.py @@ -194,9 +194,11 @@ class OutputTestCase(unittest.TestCase): ) def test_output_htmlcalendar(self): + encoding = 'ascii' + cal = calendar.HTMLCalendar() self.assertEqual( - calendar.HTMLCalendar().formatyearpage(2004).strip(), - result_2004_html.strip() + cal.formatyearpage(2004, encoding=encoding).strip(b' \t\n'), + result_2004_html.strip(' \t\n').encode(encoding) ) -- cgit v0.12