Skip to content
Snippets Groups Projects
Commit c4f9f5dc authored by Antoine Martin's avatar Antoine Martin Committed by omni
Browse files

community/py3-whoosh: enable tests

parent c6c898e5
No related branches found
No related tags found
1 merge request!65493community/py3-whoosh: enable tests
Pipeline #232386 skipped
......@@ -3,7 +3,7 @@
pkgname=py3-whoosh
_pyname="Whoosh"
pkgver=2.7.4
pkgrel=1
pkgrel=2
arch="noarch"
pkgdesc="Fast, pure-Python full text indexing, search, and spell checking library"
url="https://pypi.python.org/project/whoosh"
......@@ -20,7 +20,6 @@ source="
$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/W/Whoosh/Whoosh-$pkgver.tar.gz
test-fix.patch
"
options="!check" # Failing test units
builddir="$srcdir"/$_pyname-$pkgver
subpackages="$pkgname-pyc"
......@@ -31,7 +30,10 @@ build() {
}
check() {
PYTHONPATH="$builddir"/src pytest -v
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
# test_minimize_dfa: AssertionError: assert <whoosh.automata.fsa.DFA object at 0x7fe398473ad0> == <whoosh.automata.fsa.DFA object at 0x7fe3984706e0>
.testenv/bin/python3 -m pytest -v -k 'not test_minimize_dfa'
}
package() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment