2024-01-15 13:54:41 +00:00
|
|
|
Index: lxml-5.1.0/src/lxml/tests/test_io.py
|
2023-05-04 16:51:26 +00:00
|
|
|
===================================================================
|
2024-01-15 13:54:41 +00:00
|
|
|
--- 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 (
|
2023-05-04 16:51:26 +00:00
|
|
|
read_file, write_to_file, BytesIO, tmpfile
|
|
|
|
)
|
|
|
|
|
|
|
|
+import lxml
|
|
|
|
|
|
|
|
class _IOTestCaseBase(HelperTestCase):
|
|
|
|
"""(c)ElementTree compatibility for IO functions/methods
|
2024-01-15 13:54:41 +00:00
|
|
|
@@ -305,6 +306,7 @@ class _IOTestCaseBase(HelperTestCase):
|
2023-05-04 16:51:26 +00:00
|
|
|
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):
|
2024-01-15 13:54:41 +00:00
|
|
|
utext = 'Søk på nettet'
|
2023-05-04 16:51:26 +00:00
|
|
|
uxml = '<?xml version="1.0" encoding="UTF-16"?><p>%s</p>' % utext
|