python-cffi: disable python2 tests

This commit is contained in:
Michal Vasilek 2022-09-25 14:55:10 +02:00 committed by classabbyamp
parent 4b714d056d
commit cede313817
1 changed files with 1 additions and 3 deletions

View File

@ -7,7 +7,7 @@ build_style=python-module
hostmakedepends="python-setuptools python3-setuptools libffi-devel"
makedepends="python-devel python3-devel libffi-devel"
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"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="MIT"
@ -25,8 +25,6 @@ do_check() {
excludes+=' and not test_wraps_from_stdlib'
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)" \
python3 -m pytest c/ testing/ -x -k "$excludes"
}