commit:     3fa6ae334ec0fe9a243d8e2aa88c0e265219b001
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 17 11:57:56 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Oct 17 15:11:03 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fa6ae33

dev-python/loky: Run tests in parallel

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

 dev-python/loky/loky-3.4.1.ebuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dev-python/loky/loky-3.4.1.ebuild 
b/dev-python/loky/loky-3.4.1.ebuild
index 8503470eaf5a..456f7062da8e 100644
--- a/dev-python/loky/loky-3.4.1.ebuild
+++ b/dev-python/loky/loky-3.4.1.ebuild
@@ -6,7 +6,7 @@ EAPI=8
 DISTUTILS_USE_PEP517=setuptools
 PYTHON_COMPAT=( python3_{10..11} )
 
-inherit distutils-r1
+inherit distutils-r1 multiprocessing
 
 DESCRIPTION="Robust and reusable Executor for joblib"
 HOMEPAGE="
@@ -30,6 +30,7 @@ BDEPEND="
        test? (
                dev-python/numpy[${PYTHON_USEDEP}]
                dev-python/packaging[${PYTHON_USEDEP}]
+               dev-python/pytest-xdist[${PYTHON_USEDEP}]
        )
 "
 
@@ -44,6 +45,8 @@ python_test() {
                
tests/test_reusable_executor.py::TestResizeExecutor::test_reusable_executor_resize
        )
 
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
        # high memory test needs a lot of memory + is broken on 32-bit platforms
-       epytest --skip-high-memory
+       epytest --skip-high-memory \
+               -p xdist -n "$(makeopts_jobs)" --dist=worksteal
 }

Reply via email to