python-lxml: fix tests

I've yet to figure out the point of adding broken do_check().
This commit is contained in:
Alessio Sergi 2018-08-09 20:26:04 +02:00
parent 94b033c105
commit bd020a6fd9
1 changed files with 6 additions and 2 deletions

View File

@ -7,7 +7,7 @@ build_style=python-module
pycompile_module="lxml"
hostmakedepends="libxslt-devel python-Cython python-setuptools python3-Cython python3-setuptools"
makedepends="libxslt-devel python-devel python3-devel"
checkdepends="python3"
checkdepends="python3-cssselect"
short_desc="Python2 binding for the libxml2 and libxslt libraries"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://lxml.de/"
@ -16,7 +16,11 @@ distfiles="https://github.com/lxml/lxml/archive/lxml-${version}.tar.gz"
checksum=010ab71b1058415a5740e3cce545251b5a7ce2d6aefdbc9d8bd0a52b08f9628b
do_check() {
python3 test.py
# https://bugs.launchpad.net/lxml/+bug/1782078
sed -i '/assertEqual(4, len(log)/d' src/lxml/tests/test_threading.py
cp -f build-3.*/lib.linux-*/lxml/*.so src/lxml
python3 test.py -vv --all-levels -p
}
post_install() {