15
0
forked from pool/python-lxml
Files
python-lxml/skip-test-under-libxml2-2.11.1.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

21 lines
811 B
Diff

Index: lxml-5.1.0/src/lxml/tests/test_io.py
===================================================================
--- lxml-5.1.0.orig/src/lxml/tests/test_io.py
+++ lxml-5.1.0/src/lxml/tests/test_io.py
@@ -12,6 +12,7 @@ from .common_imports import (
read_file, write_to_file, BytesIO, tmpfile
)
+import lxml
class _IOTestCaseBase(HelperTestCase):
"""(c)ElementTree compatibility for IO functions/methods
@@ -305,6 +306,7 @@ class _IOTestCaseBase(HelperTestCase):
os.unlink(f.name)
self.assertEqual(utext, root.text)
+ @unittest.skipIf(lxml.etree.LIBXML_VERSION >= (2, 11, 1), "libxml2 regression has issues with utf16")
def test_iterparse_utf16_bom(self):
utext = 'Søk på nettet'
uxml = '<?xml version="1.0" encoding="UTF-16"?><p>%s</p>' % utext