Remove workaround for different html5-parser versions in test as CI servers have been updated with up-to-date html5-parser

This commit is contained in:
Kovid Goyal 2019-05-24 12:59:54 +05:30
parent 77966f6c7d
commit 83862873ef
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -163,15 +163,12 @@ def find_tests():
'<p class="description">lineone</p>\n<p class="description">linetwo</p>'),
('a <b>b&c</b>\nf',
'<p class="description">a <b>b&amp;c</b><br>f</p>'),
'<p class="description">a <b>b&amp;c</b><br/>f</p>'),
('a <?xml asd> b\n\ncd',
'<p class="description">a b</p><p class="description">cd</p>'),
]:
cval = comments_to_html(pat)
# normalize <br> representations produced by different
# versions of html5-parser
cval = cval.replace('<br></br>', '<br>').replace('<br/>', '<br>')
self.assertEqual(cval, val)
return unittest.defaultTestLoader.loadTestsFromTestCase(Test)