mirror of
https://github.com/python/cpython.git
synced 2024-12-01 22:04:04 +08:00
The HTMLCalendar outputs bytes now, so fix the test
accordingly (bytes.strip() always requires an argument).
This commit is contained in:
parent
1f5947b30a
commit
c49ebc0d07
@ -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)
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user