Commit c49ebc0d authored by Walter Dörwald's avatar Walter Dörwald

The HTMLCalendar outputs bytes now, so fix the test

accordingly (bytes.strip() always requires an argument).
parent 1f5947b3
...@@ -194,9 +194,11 @@ class OutputTestCase(unittest.TestCase): ...@@ -194,9 +194,11 @@ class OutputTestCase(unittest.TestCase):
) )
def test_output_htmlcalendar(self): def test_output_htmlcalendar(self):
encoding = 'ascii'
cal = calendar.HTMLCalendar()
self.assertEqual( self.assertEqual(
calendar.HTMLCalendar().formatyearpage(2004).strip(), cal.formatyearpage(2004, encoding=encoding).strip(b' \t\n'),
result_2004_html.strip() result_2004_html.strip(' \t\n').encode(encoding)
) )
......
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