commit: a63602d7627411069bd4800a6bd15858cb801745
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 25 11:31:49 2021 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jul 25 11:31:49 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a63602d7
dev-python/scikit-build: Use epytest --deselect instead of rm
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/scikit-build/scikit-build-0.11.1.ebuild | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/dev-python/scikit-build/scikit-build-0.11.1.ebuild
b/dev-python/scikit-build/scikit-build-0.11.1.ebuild
index 9cb69aa5691..398a1f1c646 100644
--- a/dev-python/scikit-build/scikit-build-0.11.1.ebuild
+++ b/dev-python/scikit-build/scikit-build-0.11.1.ebuild
@@ -41,14 +41,13 @@ distutils_enable_sphinx docs \
dev-python/sphinx-issues
distutils_enable_tests pytest
-python_prepare_all() {
- # Skip tests causing sandbox violations
- rm \
- tests/test_hello_cpp.py \
- tests/test_issue274_support_default_package_dir.py \
- tests/test_issue274_support_one_package_without_package_dir.py \
- tests/test_issue284_build_ext_inplace.py \
- tests/test_issue334_configure_cmakelists_non_cp1252_encoding.py
\
- || die
- distutils-r1_python_prepare_all
+python_test() {
+ local deselect=(
+ # sandbox violations
+ tests/test_hello_cpp.py::test_hello_develop
+ tests/test_issue274_support_default_package_dir.py
+ tests/test_issue274_support_one_package_without_package_dir.py
+ tests/test_issue334_configure_cmakelists_non_cp1252_encoding.py
+ )
+ epytest ${deselect[@]/#/--deselect }
}