commit: 04719d075d4db7ab2834441828cc4c6f85b478e2
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 12 18:21:54 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Sep 12 18:22:17 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04719d07
dev-python/prometheus-client: Fix py3.14 test failures
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
.../prometheus-client-0.23.0.ebuild | 25 ++++++++--------------
1 file changed, 9 insertions(+), 16 deletions(-)
diff --git a/dev-python/prometheus-client/prometheus-client-0.23.0.ebuild
b/dev-python/prometheus-client/prometheus-client-0.23.0.ebuild
index da8514c93a69..c52a5fd3f27e 100644
--- a/dev-python/prometheus-client/prometheus-client-0.23.0.ebuild
+++ b/dev-python/prometheus-client/prometheus-client-0.23.0.ebuild
@@ -33,20 +33,13 @@ RDEPEND="
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
-python_test() {
- local EPYTEST_DESELECT=(
-
tests/test_parser.py::test_benchmark_text_string_to_metric_families
- )
-
- case ${EPYTHON} in
- python3.14*)
- EPYTEST_DESELECT+=(
- # broken asyncio use in tests
- #
https://github.com/prometheus/client_python/issues/1137
- tests/test_asgi.py
- )
- ;;
- esac
-
- epytest
+EPYTEST_DESELECT=(
+ tests/test_parser.py::test_benchmark_text_string_to_metric_families
+)
+
+src_prepare() {
+ distutils-r1_src_prepare
+
+ # https://github.com/prometheus/client_python/pull/1138
+ sed -i -e 's:get_event_loop:new_event_loop:' tests/test_asgi.py || die
}