15
0
forked from pool/python-lxml
Files
python-lxml/skip-test-under-libxml2-2.10.4.patch
Dirk Mueller 26c09de24d - update to 5.3.2:
* This release resolves CVE-2025-24928 as described in
  * https://gitlab.gnome.org/GNOME/libxml2/-/issues/847
  * GH#440: Some tests were adapted for libxml2 2.14.0.
  * LP#2097175: ``DTD(external_id="…")`` erroneously required a
    byte string as ID value.
  * GH#450: ``iterparse()`` internally triggered the
    `DeprecationWarning`` added in lxml 5.3.0 when parsing HTML.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lxml?expand=0&rev=204
2025-04-14 20:23:51 +00:00

13 lines
593 B
Diff

Index: lxml-5.1.0/src/lxml/tests/test_etree.py
===================================================================
--- lxml-5.1.0.orig/src/lxml/tests/test_etree.py
+++ lxml-5.1.0/src/lxml/tests/test_etree.py
@@ -3256,6 +3256,7 @@ class ETreeOnlyTestCase(HelperTestCase):
self.assertEqual(re, e.nsmap)
self.assertEqual(r, s.nsmap)
+ @unittest.skipIf(etree.LIBXML_VERSION >= (2, 10, 4), "libxml2 regression ignores namespaces")
def test_html_prefix_nsmap(self):
etree = self.etree
el = etree.HTML('<hha:page-description>aa</hha:page-description>')