main/py3-lxml: fix check with new libxml

This commit is contained in:
psykose 2023-04-28 21:36:14 +00:00
parent db35995065
commit d843cfd1f8
2 changed files with 14 additions and 0 deletions

View File

@ -19,6 +19,7 @@ makedepends="
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
libxml-2.10.4.patch
libxml-2.11.0.patch
tests-fix-encoding-name.patch
"
builddir="$srcdir/$_pkgname-$pkgver"
@ -49,5 +50,6 @@ package() {
sha512sums="
4597784c96219145fef30607f257097ad312264a6796e65b3dc74463853cd29f55379b6a903b401c1120750126b57f58dd9fc459dd453e57030883fc76b87ea3 lxml-4.9.2.tar.gz
9602b2d704dfa85bc76a84c905531ae418c326b93b601da83ad4e14460551f4eb2ddde406e67de181337028f3d591b9d537c6637ec2bbc7dd576cfbd1a50552c libxml-2.10.4.patch
6436f87042563bb3a08bd7d0216fdb284d639b1a72fde77dce75d7c3e63f4f18ba115df9540fe4298f558df53f9dbfbd781374138544e8e5d9cb5ca5928f343c libxml-2.11.0.patch
ef5ba4064166443e07040db315173a4d0cb0d83eb3cd49623f210253a25433ec1c408d6d8e538f93498a211bc1695fdaa3e39f8ac75f36a3319c38bd96ba73eb tests-fix-encoding-name.patch
"

View File

@ -0,0 +1,12 @@
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: