python3-multidict: fix tests

Don't enable coverage for tests.
This commit is contained in:
Alessio Sergi 2018-10-15 20:13:37 +02:00
parent c6e701a289
commit 3c8a25fd15
1 changed files with 10 additions and 2 deletions

View File

@ -7,7 +7,7 @@ build_style=python3-module
pycompile_module="multidict"
hostmakedepends="python3-Cython python3-setuptools"
makedepends="python3-devel"
checkdepends="python3-pytest python3-perf python3-coverage python3-pytest-cov"
checkdepends="python3-pytest"
short_desc="Multidict implementation from aiohttp"
maintainer="Michael Aldridge <maldridge@VoidLinux.eu>"
license="Apache-2.0"
@ -17,5 +17,13 @@ distfiles="https://github.com/aio-libs/multidict/archive/v${version}.tar.gz"
checksum=5caa32ec9fd170b589c804e9e741da5226473174eab6af813bc0183db1f52c1b
do_check() {
python3 setup.py test
# don't use pytest-runner
sed -i '/setup_requires=/d' setup.py
# don't enable coverage for tests
sed -i 's/pytest-cov//' setup.py
sed -i '/addopts/d' pytest.ini
cp -f build/lib.linux-*/multidict/*.so multidict
python3 -m pytest
}