commit: 0491fa68ba39b2725b91c83c193cb2b8b7441d77 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Mon Jul 22 13:53:17 2024 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Mon Jul 22 13:55:15 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0491fa68
dev-python/prometheus-client: Disable plugin autoload to fix tests Closes: https://bugs.gentoo.org/924624 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> .../prometheus-client/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 8936fe3974dc..70af628bd4e1 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 +}
