From: Walter Dörwald Date: Tue, 22 May 2007 17:03:39 +0000 (+0000) Subject: The HTMLCalendar outputs bytes now, so fix the test X-Git-Tag: v3.0a1~901 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c49ebc0d07f47336b3720e546876d0f799ef0f50;p=thirdparty%2FPython%2Fcpython.git The HTMLCalendar outputs bytes now, so fix the test accordingly (bytes.strip() always requires an argument). --- diff --git a/Lib/test/test_calendar.py b/Lib/test/test_calendar.py index 8cbf5e0974a5..015b59ffb09a 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) )