The HTMLCalendar outputs bytes now, so fix the test

accordingly (bytes.strip() always requires an argument).
This commit is contained in:
Walter Dörwald 2007-05-22 17:03:39 +00:00
parent 1f5947b30a
commit c49ebc0d07
1 changed files with 4 additions and 2 deletions

View File

@ -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)
)