dev-python/jaraco-classes: add Python 3.7, run tests from BUILD_DIR
authorLouis Sautier <sbraz@gentoo.org>
Tue, 24 Jul 2018 21:20:58 +0000 (23:20 +0200)
committerLouis Sautier <sbraz@gentoo.org>
Tue, 24 Jul 2018 21:22:53 +0000 (23:22 +0200)
Package-Manager: Portage-2.3.43, Repoman-2.3.10

dev-python/jaraco-classes/jaraco-classes-1.5.ebuild

index d91842e9e0c0396a05b43611c02616670b8eeff0..ecf62cfb39b924b982e115f18892c2d86b07fee2 100644 (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}"
 }