mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
15 lines
685 B
Diff
15 lines
685 B
Diff
From: Patrycja Rosa <alpine@ptrcnull.me>
|
|
Date: Thu, 10 Feb 2022 14:09:24 +0100
|
|
Subject: test_incremental_xmlfile: fix encoding name
|
|
|
|
diff --git a/src/lxml/tests/test_incremental_xmlfile.py b/src/lxml/tests/test_incremental_xmlfile.py
|
|
--- a/src/lxml/tests/test_incremental_xmlfile.py
|
|
+++ b/src/lxml/tests/test_incremental_xmlfile.py
|
|
@@ -173,4 +173,4 @@
|
|
- 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')
|