commit:     2b48548d186f68ad0bebf9ffbb72b2bc23f454a8
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  9 16:18:23 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Dec  9 16:36:57 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b48548d

dev-python/django: Backport --parallel test logic to 4.1.12-r1

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

 dev-python/django/django-4.1.12-r1.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dev-python/django/django-4.1.12-r1.ebuild 
b/dev-python/django/django-4.1.12-r1.ebuild
index a8b776d883a6..382e7bd0fb47 100644
--- a/dev-python/django/django-4.1.12-r1.ebuild
+++ b/dev-python/django/django-4.1.12-r1.ebuild
@@ -7,7 +7,7 @@ DISTUTILS_USE_PEP517=setuptools
 PYTHON_COMPAT=( pypy3 python3_{10..11} )
 PYTHON_REQ_USE='sqlite?,threads(+)'
 
-inherit bash-completion-r1 distutils-r1 optfeature verify-sig
+inherit bash-completion-r1 distutils-r1 multiprocessing optfeature verify-sig
 
 DESCRIPTION="High-level Python web framework"
 HOMEPAGE="
@@ -76,7 +76,8 @@ src_unpack() {
 python_test() {
        # Tests have non-standard assumptions about PYTHONPATH,
        # and don't work with ${BUILD_DIR}/lib.
-       PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite -v2 
||
+       PYTHONPATH=. "${EPYTHON}" tests/runtests.py --settings=test_sqlite \
+               -v2 --parallel="${EPYTEST_JOBS:-$(makeopts_jobs)}" ||
                die "Tests fail with ${EPYTHON}"
 }
 

Reply via email to