mirror of
https://github.com/void-linux/void-packages.git
synced 2025-10-12 05:25:34 +02:00
19 lines
987 B
Diff
19 lines
987 B
Diff
from alpine: https://gitlab.alpinelinux.org/alpine/aports/-/blob/3f64a63298ac78f5f2a50a52e3e3f01eef1b51ce/main/py3-lxml/tests-fix-encoding-name.patch
|
|
|
|
diff --git a/src/lxml/tests/test_incremental_xmlfile.py b/src/lxml/tests/test_incremental_xmlfile.py
|
|
index 3162155..43b79d7 100644
|
|
--- a/src/lxml/tests/test_incremental_xmlfile.py
|
|
+++ b/src/lxml/tests/test_incremental_xmlfile.py
|
|
@@ -177,10 +177,10 @@ class _XmlFileTestCaseBase(HelperTestCase):
|
|
'<test>Comments: <!-- text -->\nEntities: &amp;</test>')
|
|
|
|
def test_encoding(self):
|
|
- with etree.xmlfile(self._file, encoding='utf16') as xf:
|
|
+ with etree.xmlfile(self._file, encoding='utf-16') as xf:
|
|
with xf.element('test'):
|
|
xf.write('toast')
|
|
- self.assertXml('<test>toast</test>', encoding='utf16')
|
|
+ self.assertXml('<test>toast</test>', encoding='utf-16')
|
|
|
|
def test_buffering(self):
|
|
with etree.xmlfile(self._file, buffered=False) as xf:
|