commit:     42a9a117927b256cbffafbe50df2806253eac2c4
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Jun  4 05:35:56 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jun  4 05:35:56 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42a9a117

media-gfx/img2pdf: Speed testing up

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

 media-gfx/img2pdf/img2pdf-0.5.1.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/media-gfx/img2pdf/img2pdf-0.5.1.ebuild 
b/media-gfx/img2pdf/img2pdf-0.5.1.ebuild
index 623b63caa284..156509f263af 100644
--- a/media-gfx/img2pdf/img2pdf-0.5.1.ebuild
+++ b/media-gfx/img2pdf/img2pdf-0.5.1.ebuild
@@ -41,6 +41,7 @@ RDEPEND="
        gui? ( $(python_gen_impl_dep tk) )
 "
 
+EPYTEST_XDIST=1
 distutils_enable_tests pytest
 
 src_prepare() {
@@ -52,7 +53,7 @@ src_prepare() {
        fi
 }
 
-src_test() {
+python_test() {
        local EPYTEST_DESELECT=(
                # https://gitlab.mister-muffin.de/josch/img2pdf/issues/187
                src/img2pdf_test.py::test_miff_cmyk8
@@ -65,5 +66,6 @@ src_test() {
                )
        fi
 
-       distutils-r1_src_test
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+       epytest
 }

Reply via email to