We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1920dff commit 5897fd6Copy full SHA for 5897fd6
changelog.d/18413.bugfix
@@ -0,0 +1 @@
1
+Skip broken HTML preview test case with libxml >= 2.14.
tests/media/test_html_preview.py
@@ -27,9 +27,11 @@
27
)
28
29
from tests import unittest
30
+from unittest.case import SkipTest
31
32
try:
33
import lxml
34
+ from lxml import etree
35
except ImportError:
36
lxml = None # type: ignore[assignment]
37
@@ -324,6 +326,9 @@ def test_empty(self) -> None:
324
326
325
327
def test_no_tree(self) -> None:
328
"""A valid body with no tree in it."""
329
+ if etree.LIBXML_VERSION >= (2, 14):
330
+ raise SkipTest("This test is known to be broken with lixml >= 2.14.")
331
+
332
html = b"\x00"
333
tree = decode_body(html, "http://example.com/test.html")
334
self.assertIsNone(tree)
0 commit comments