python-cffi: disable python2 tests
This commit is contained in:
parent
4b714d056d
commit
cede313817
|
@ -7,7 +7,7 @@ build_style=python-module
|
||||||
hostmakedepends="python-setuptools python3-setuptools libffi-devel"
|
hostmakedepends="python-setuptools python3-setuptools libffi-devel"
|
||||||
makedepends="python-devel python3-devel libffi-devel"
|
makedepends="python-devel python3-devel libffi-devel"
|
||||||
depends="python-pycparser"
|
depends="python-pycparser"
|
||||||
checkdepends="python-pytest python3-pytest python-pycparser python3-pycparser"
|
checkdepends="python3-pytest python3-pycparser"
|
||||||
short_desc="C foreign function interface for Python2"
|
short_desc="C foreign function interface for Python2"
|
||||||
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
|
@ -25,8 +25,6 @@ do_check() {
|
||||||
excludes+=' and not test_wraps_from_stdlib'
|
excludes+=' and not test_wraps_from_stdlib'
|
||||||
excludes+=' and not test_stdcall_only_on_windows'
|
excludes+=' and not test_stdcall_only_on_windows'
|
||||||
|
|
||||||
PYTHONPATH="$(cd build-2.7/lib* && pwd)" \
|
|
||||||
python2 -m pytest c/ testing/ -x -k "$excludes"
|
|
||||||
PYTHONPATH="$(cd build-${py3_ver}/lib* && pwd)" \
|
PYTHONPATH="$(cd build-${py3_ver}/lib* && pwd)" \
|
||||||
python3 -m pytest c/ testing/ -x -k "$excludes"
|
python3 -m pytest c/ testing/ -x -k "$excludes"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue