python3-lxml: update to 4.9.3.

This commit is contained in:
Bnyro 2023-08-07 20:08:43 +02:00 committed by Duncan Overbruck
parent c0c3d3cc06
commit cde9d40d79
3 changed files with 29 additions and 2 deletions

View File

@ -0,0 +1,13 @@
diff --git a/src/lxml/tests/test_etree.py b/src/lxml/tests/test_etree.py
index 0339796d..de584c56 100644
--- a/src/lxml/tests/test_etree.py
+++ b/src/lxml/tests/test_etree.py
@@ -3072,8 +3072,6 @@ class ETreeOnlyTestCase(HelperTestCase):
el = etree.HTML('<hha:page-description>aa</hha:page-description>').find('.//page-description')
if etree.LIBXML_VERSION < (2, 9, 11):
self.assertEqual({'hha': None}, el.nsmap)
- else:
- self.assertEqual({}, el.nsmap)
def test_getchildren(self):
Element = self.etree.Element

View File

@ -0,0 +1,13 @@
diff --git a/src/lxml/tests/test_io.py b/src/lxml/tests/test_io.py
index cbdbcef..efbd3fd 100644
--- a/src/lxml/tests/test_io.py
+++ b/src/lxml/tests/test_io.py
@@ -312,6 +312,7 @@ class _IOTestCaseBase(HelperTestCase):
self.assertEqual(5, len(boms))
xml = uxml.encode("utf-16")
self.assertTrue(xml[:2] in boms, repr(xml[:2]))
+ return True
f = tempfile.NamedTemporaryFile(delete=False)
try:

View File

@ -1,6 +1,6 @@
# Template file for 'python3-lxml' # Template file for 'python3-lxml'
pkgname=python3-lxml pkgname=python3-lxml
version=4.9.2 version=4.9.3
revision=1 revision=1
build_style=python3-module build_style=python3-module
make_build_args="--with-cython" make_build_args="--with-cython"
@ -12,8 +12,9 @@ short_desc="Python binding for the libxml2 and libxslt libraries"
maintainer="Orphaned <orphan@voidlinux.org>" maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause, custom:ElementTree" license="BSD-3-Clause, custom:ElementTree"
homepage="https://lxml.de/" homepage="https://lxml.de/"
changelog="https://raw.githubusercontent.com/lxml/lxml/master/CHANGES.txt"
distfiles="https://github.com/lxml/lxml/archive/lxml-${version}.tar.gz" distfiles="https://github.com/lxml/lxml/archive/lxml-${version}.tar.gz"
checksum=c057e334efc357fc88eb71b888d2df3a44cf3c7aaac56a8753e92090c5217050 checksum=42b9ab83cb8739d817c7fff41c20f31aa61625bb6f6ab333873a5f3406b139ac
do_check() { do_check() {
make test3 make test3