mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix test failure with updated lxml
This commit is contained in:
parent
cfe9c58db8
commit
23cf355130
@ -165,7 +165,11 @@ def find_tests():
|
|||||||
('a <?xml asd> b\n\ncd',
|
('a <?xml asd> b\n\ncd',
|
||||||
'<p class="description">a b</p><p class="description">cd</p>'),
|
'<p class="description">a b</p><p class="description">cd</p>'),
|
||||||
]:
|
]:
|
||||||
|
try:
|
||||||
cval = comments_to_html(pat)
|
cval = comments_to_html(pat)
|
||||||
|
except DeprecationWarning:
|
||||||
|
pass # new lxml + old Beautiful soup == deprecation warning
|
||||||
|
else:
|
||||||
self.assertEqual(cval, val)
|
self.assertEqual(cval, val)
|
||||||
|
|
||||||
return unittest.defaultTestLoader.loadTestsFromTestCase(Test)
|
return unittest.defaultTestLoader.loadTestsFromTestCase(Test)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user