commit: b10b8e4302b9459c55b6f50f3f1aac52dd28a294
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 28 13:34:33 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Tue Dec 28 14:14:58 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b10b8e43
dev-python/nbval: enable py3.10, fix tests
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
dev-python/nbval/nbval-0.9.6.ebuild | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/dev-python/nbval/nbval-0.9.6.ebuild
b/dev-python/nbval/nbval-0.9.6.ebuild
index dd3f21a47ef9..d5b82cd22c6d 100644
--- a/dev-python/nbval/nbval-0.9.6.ebuild
+++ b/dev-python/nbval/nbval-0.9.6.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-PYTHON_COMPAT=( python3_{7..9} )
+PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
DESCRIPTION="A py.test plugin to validate Jupyter notebooks"
@@ -25,13 +25,14 @@ RDEPEND="
"
BDEPEND="test? ( dev-python/sympy[${PYTHON_USEDEP}] )"
-distutils_enable_tests pytest
+distutils_enable_tests --install pytest
python_test() {
+ distutils_install_for_testing
local deselect=(
--deselect tests/test_ignore.py::test_conf_ignore_stderr
--deselect tests/test_timeouts.py::test_timeouts
)
- pytest -vv "${deselect[@]}" || die "Tests failed with ${EPYTHON}"
+ epytest "${deselect[@]}"
}