From 5eafcf000d2247d7c5284a5c8dea3b3594bb707e Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sat, 14 Nov 2020 22:23:14 +0100 Subject: dev-python/loky: Skip high_memory tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Skip unimportant tests that require a lot of memory, and are broken on 32-bit platforms. Closes: https://bugs.gentoo.org/743334 Signed-off-by: Michał Górny --- dev-python/loky/loky-2.9.0.ebuild | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/dev-python/loky/loky-2.9.0.ebuild b/dev-python/loky/loky-2.9.0.ebuild index dd2b48641bc5..5d4a3524b53e 100644 --- a/dev-python/loky/loky-2.9.0.ebuild +++ b/dev-python/loky/loky-2.9.0.ebuild @@ -25,10 +25,14 @@ BDEPEND=" distutils_enable_tests pytest -src_prepare() { - # docker, seriously? - sed -e 's:test_cpu_count_cfs_limit:_&:' \ - -i tests/test_loky_module.py || die - - distutils-r1_src_prepare +python_test() { + local args=( + # docker, seriously? + --deselect 'tests/test_loky_module.py::test_cpu_count_cfs_limit' + # one test that uses a lot of memory, also broken on 32-bit + # platforms + --skip-high-memory + ) + + pytest -vv "${args[@]}" || die "Tests failed on ${EPYTHON}" } -- cgit v1.2.3-65-gdbad