mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
77966f6c7d
commit
83862873ef
@ -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&c</b><br>f</p>'),
|
||||
'<p class="description">a <b>b&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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user