commit:     3faa913b40738b91209eebf9a5cdb221a86df109
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 14 09:56:56 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Dec 14 10:52:21 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3faa913b

dev-python/threadpoolctl: Disable pytest plugin autoloading

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

 .../threadpoolctl/threadpoolctl-3.5.0.ebuild       | 27 +++++++++++++---------
 1 file changed, 16 insertions(+), 11 deletions(-)

diff --git a/dev-python/threadpoolctl/threadpoolctl-3.5.0.ebuild 
b/dev-python/threadpoolctl/threadpoolctl-3.5.0.ebuild
index af0f4350c79e..072fb0f23804 100644
--- a/dev-python/threadpoolctl/threadpoolctl-3.5.0.ebuild
+++ b/dev-python/threadpoolctl/threadpoolctl-3.5.0.ebuild
@@ -24,14 +24,19 @@ KEYWORDS="amd64 ~arm arm64 ~ppc ppc64 ~riscv x86 
~arm64-macos ~x64-macos"
 
 distutils_enable_tests pytest
 
-EPYTEST_DESELECT=(
-       # Asserts against a hardcoded list of CPUs.  Either we skip it
-       # or file bugs about missing architectures until upstream realizes
-       # how bad idea that were.
-       tests/test_threadpoolctl.py::test_architecture
-       # This test fails if the Python executable (or any library that it
-       # links to) uses OpenMP.  This can particularly be the case with
-       # CPython 3.12 that links to app-crypt/libb2.
-       # https://github.com/joblib/threadpoolctl/issues/146
-       tests/test_threadpoolctl.py::test_command_line_empty
-)
+python_test() {
+       local EPYTEST_DESELECT=(
+               # Asserts against a hardcoded list of CPUs.  Either we skip it
+               # or file bugs about missing architectures until upstream 
realizes
+               # how bad idea that were.
+               tests/test_threadpoolctl.py::test_architecture
+               # This test fails if the Python executable (or any library that 
it
+               # links to) uses OpenMP.  This can particularly be the case with
+               # CPython 3.12 that links to app-crypt/libb2.
+               # https://github.com/joblib/threadpoolctl/issues/146
+               tests/test_threadpoolctl.py::test_command_line_empty
+       )
+
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+       epytest
+}

Reply via email to