From d44d24e0255a08b27d5aad54f431eabb6ee93df9 Mon Sep 17 00:00:00 2001 From: Violet Purcell Date: Fri, 31 May 2024 14:11:03 -0400 Subject: dev-lang/python: skip known failing tests on musl Signed-off-by: Violet Purcell Closes: https://github.com/gentoo/gentoo/pull/36925 Signed-off-by: Sam James --- dev-lang/python/python-3.13.0_beta1_p3.ebuild | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'dev-lang/python') diff --git a/dev-lang/python/python-3.13.0_beta1_p3.ebuild b/dev-lang/python/python-3.13.0_beta1_p3.ebuild index 3744ca2daff1..792927c05468 100644 --- a/dev-lang/python/python-3.13.0_beta1_p3.ebuild +++ b/dev-lang/python/python-3.13.0_beta1_p3.ebuild @@ -305,6 +305,22 @@ src_configure() { ;; esac + # musl-specific skips + use elibc_musl && COMMON_TEST_SKIPS+=( + # various musl locale deficiencies + -x test__locale + -x test_c_locale_coercion + -x test_locale + -x test_re + + # known issues with find_library on musl + # https://bugs.python.org/issue21622 + -x test_ctypes + + # fpathconf, ttyname errno values + -x test_os + ) + if use pgo; then local profile_task_flags=( -m test @@ -372,6 +388,22 @@ src_configure() { ;; esac + # musl-specific skips + use elibc_musl && profile_task_flags+=( + # various musl locale deficiencies + -x test__locale + -x test_c_locale_coercion + -x test_locale + -x test_re + + # known issues with find_library on musl + # https://bugs.python.org/issue21622 + -x test_ctypes + + # fpathconf, ttyname errno values + -x test_os + ) + if has_version "app-arch/rpm" ; then # Avoid sandbox failure (attempts to write to /var/lib/rpm) profile_task_flags+=( -- cgit v1.2.3