mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00: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
1 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue