Skip to content
Snippets Groups Projects
Commit f30f2079 authored by Patrycja Rosa's avatar Patrycja Rosa :cat: Committed by Francesco Colista
Browse files

main/py3-pexpect: fix running tests

parent ae8feac2
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ arch="noarch"
license="ISC"
depends="python3 py3-ptyprocess"
makedepends="py3-setuptools"
checkdepends="py3-pytest bash coreutils"
source="$pkgname-$pkgver.tar.gz::https://github.com/pexpect/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
......@@ -21,7 +22,11 @@ build() {
}
check() {
python3 setup.py check
# tests that don't expect ansi colors
_tests_colors="not test_async_replwrap_multiline and not REPLWrapTestCase"
# tests that have 'python' hardcoded
_tests_py2="not test_100000 and not test_run_exit"
python3 -m pytest -k "$_tests_colors and $_tests_py2"
}
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