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 +}