diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-07-11 21:06:49 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-07-11 21:23:35 +0200 |
commit | 5880e9fd79da32518ae00df7dc268f3dcb6c7d12 (patch) | |
tree | bc64464ae3e5bd459ff71133be6ada0144f4e01e /dev-python/joblib | |
parent | dev-python/pydantic: Extend py3.13 testing to all deps (diff) | |
download | gentoo-5880e9fd79da32518ae00df7dc268f3dcb6c7d12.tar.gz gentoo-5880e9fd79da32518ae00df7dc268f3dcb6c7d12.tar.bz2 gentoo-5880e9fd79da32518ae00df7dc268f3dcb6c7d12.zip |
dev-python/joblib: Fix testing
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/joblib')
-rw-r--r-- | dev-python/joblib/joblib-1.4.2.ebuild | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/dev-python/joblib/joblib-1.4.2.ebuild b/dev-python/joblib/joblib-1.4.2.ebuild index aa95f7bec3b5..9e374aea030a 100644 --- a/dev-python/joblib/joblib-1.4.2.ebuild +++ b/dev-python/joblib/joblib-1.4.2.ebuild @@ -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 @@ -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 +} |