From 0491fa68ba39b2725b91c83c193cb2b8b7441d77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Mon, 22 Jul 2024 15:53:17 +0200 Subject: [PATCH] dev-python/prometheus-client: Disable plugin autoload to fix tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/924624 Signed-off-by: Michał Górny --- .../prometheus-client-0.20.0.ebuild | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/dev-python/prometheus-client/prometheus-client-0.20.0.ebuild b/dev-python/prometheus-client/prometheus-client-0.20.0.ebuild index 8936fe3974dc7..70af628bd4e1a 100644 --- a/dev-python/prometheus-client/prometheus-client-0.20.0.ebuild +++ b/dev-python/prometheus-client/prometheus-client-0.20.0.ebuild @@ -24,7 +24,12 @@ RDEPEND=" distutils_enable_tests pytest -EPYTEST_IGNORE=( - # optional tests, broken with >=dev-python/asgiref-3.8 - tests/test_asgi.py -) +python_test() { + local EPYTEST_IGNORE=( + # optional tests, broken with >=dev-python/asgiref-3.8 + tests/test_asgi.py + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +}