commit:     cc337e684563419395c3051a090cd1d43cb0df99
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 10 11:14:00 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Oct 10 11:24:32 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc337e68

dev-python/scikit-build: Use EPYTEST_PLUGINS

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/scikit-build/scikit-build-0.18.1.ebuild | 15 ++-------------
 1 file changed, 2 insertions(+), 13 deletions(-)

diff --git a/dev-python/scikit-build/scikit-build-0.18.1.ebuild 
b/dev-python/scikit-build/scikit-build-0.18.1.ebuild
index 4416285194dd..504491747ab2 100644
--- a/dev-python/scikit-build/scikit-build-0.18.1.ebuild
+++ b/dev-python/scikit-build/scikit-build-0.18.1.ebuild
@@ -32,7 +32,6 @@ BDEPEND="
                >=dev-python/build-0.7[${PYTHON_USEDEP}]
                >=dev-python/cython-0.25.1[${PYTHON_USEDEP}]
                dev-python/pip[${PYTHON_USEDEP}]
-               >=dev-python/pytest-mock-1.10.4[${PYTHON_USEDEP}]
                dev-python/requests[${PYTHON_USEDEP}]
                dev-python/virtualenv[${PYTHON_USEDEP}]
        )
@@ -42,6 +41,7 @@ distutils_enable_sphinx docs \
        dev-python/sphinx-rtd-theme \
        dev-python/sphinx-issues
 # note: tests are unstable with xdist
+EPYTEST_PLUGINS=( pytest-mock )
 distutils_enable_tests pytest
 
 src_prepare() {
@@ -62,21 +62,10 @@ python_test() {
                tests/test_hello_cpp.py::test_hello_develop
        )
 
-       case ${EPYTHON} in
-               pypy3)
-                       EPYTEST_DESELECT+=(
-                               # no "library" in (our install of) pypy3
-                               tests/test_cmaker.py::test_get_python_library
-                       )
-                       ;;
-       esac
-
        # create a separate test tree since skbuild tests install random stuff
        cp -r "${BUILD_DIR}"/{install,test} || die
        local -x PATH=${BUILD_DIR}/test${EPREFIX}/usr/bin:${PATH}
 
-       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
-       epytest -p pytest_mock \
-               -m "not isolated and not nosetuptoolsscm" \
+       epytest -m "not isolated and not nosetuptoolsscm" \
                -o tmp_path_retention_count=1
 }

Reply via email to