commit:     5eafcf000d2247d7c5284a5c8dea3b3594bb707e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 14 21:23:14 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov 14 21:23:44 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5eafcf00

dev-python/loky: Skip high_memory tests

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 <mgorny <AT> gentoo.org>

 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 dd2b48641bc..5d4a3524b53 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}"
 }

Reply via email to