Skip to content

Commit

Permalink
dev-python/joblib: Fix testing
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Jul 11, 2024
1 parent b47b382 commit 5880e9f
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions dev-python/joblib/joblib-1.4.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,12 @@ RDEPEND="
BDEPEND="
${RDEPEND}
test? (
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/threadpoolctl[${PYTHON_USEDEP}]
)
"

distutils_enable_tests pytest

EPYTEST_DESELECT=(
# https://github.com/joblib/joblib/issues/1115
joblib/test/test_memory.py::test_parallel_call_cached_function_defined_in_jupyter
# unexpectedly pickleable?
joblib/test/test_hashing.py::test_hashing_pickling_error
# https://github.com/joblib/joblib/issu
joblib/test/test_parallel.py::test_main_thread_renamed_no_warning
)

python_prepare_all() {
# unbundle
rm -r joblib/externals || die
Expand All @@ -53,3 +44,15 @@ python_prepare_all() {

distutils-r1_python_prepare_all
}

python_test() {
local EPYTEST_DESELECT=(
# https://github.com/joblib/joblib/issues/1115
joblib/test/test_memory.py::test_parallel_call_cached_function_defined_in_jupyter
# https://github.com/joblib/joblib/issues/1478
joblib/test/test_parallel.py::test_main_thread_renamed_no_warning
)

local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest -p asyncio
}

0 comments on commit 5880e9f

Please sign in to comment.