dev-python/jaraco-classes: add Python 3.7, run tests from BUILD_DIR

Package-Manager: Portage-2.3.43, Repoman-2.3.10
This commit is contained in:
Louis Sautier
2018-07-24 23:20:58 +02:00
parent 11890ffcff
commit 9742454d06

View File

@@ -4,7 +4,7 @@
EAPI=7
# Tests fail with pypy
PYTHON_COMPAT=( pypy3 python{2_7,3_{4,5,6}} )
PYTHON_COMPAT=( pypy3 python{2_7,3_{4,5,6,7}} )
inherit distutils-r1
@@ -47,8 +47,8 @@ python_compile_all() {
}
python_test() {
# Override pytest options to skip flake8
PYTHONPATH=. py.test --override-ini="addopts=--doctest-modules" \
# Avoid ImportMismatchError, override pytest options to skip flake8
pytest -vv "${BUILD_DIR}"/lib --override-ini="addopts=--doctest-modules" \
|| die "tests failed with ${EPYTHON}"
}