1 parent cfe9c58 commit 233ec29Copy full SHA for 233ec29
1 file changed
src/calibre/library/comments.py
@@ -165,7 +165,9 @@ def test_comments_to_html(self):
165
('a <?xml asd> b\n\ncd',
166
'<p class="description">a b</p><p class="description">cd</p>'),
167
]:
168
- cval = comments_to_html(pat)
+ import warnings # lxml + beautifulsoup raise a deprecation warning causing test to fail in CI
169
+ with warnings.catch_warnings():
170
+ cval = comments_to_html(pat)
171
self.assertEqual(cval, val)
172
173
return unittest.defaultTestLoader.loadTestsFromTestCase(Test)
0 commit comments