diff options
-rw-r--r-- | Lib/test/test_calendar.py | 6 |
1 files 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) ) |