commit: 26413a3fb5f9c37fbc14b7a567f6c1f7358555ac Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Fri Oct 17 13:39:42 2025 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Thu Oct 23 18:19:13 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26413a3f
distutils-r1.eclass: Use EPYTEST_PLUGINS for import-check Add "pytest-import-check" to EPYTEST_PLUGINS automatically when using import-check. This also implicitly overrides the default behavior of enabling all plugins, and instead runs with just the import-check plugin loaded. Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> Part-of: https://github.com/gentoo/gentoo/pull/44172 Closes: https://github.com/gentoo/gentoo/pull/44172 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> eclass/distutils-r1.eclass | 1 + 1 file changed, 1 insertion(+) diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index b7f5045e60bd..8fc92cf4fca5 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -551,6 +551,7 @@ distutils_enable_tests() { case ${1} in import-check) test_pkgs+=' dev-python/pytest-import-check[${PYTHON_USEDEP}]' + EPYTEST_PLUGINS+=( pytest-import-check ) ;& pytest) test_pkgs+=' >=dev-python/pytest-7.4.4[${PYTHON_USEDEP}]'
