commit: d22cedb2fad2f5c31c7916171f88c9b71231cb16
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 28 21:00:40 2022 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jan 28 21:50:27 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d22cedb2
dev-python/pytest: Disable plugin autoload for reliable testing
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pytest/pytest-6.2.5-r2.ebuild | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dev-python/pytest/pytest-6.2.5-r2.ebuild
b/dev-python/pytest/pytest-6.2.5-r2.ebuild
index e1ab42664254..4558e9276b96 100644
--- a/dev-python/pytest/pytest-6.2.5-r2.ebuild
+++ b/dev-python/pytest/pytest-6.2.5-r2.ebuild
@@ -53,7 +53,9 @@ src_test() {
python_test() {
distutils_install_for_testing --via-root
- "${EPYTHON}" -m pytest -vv --lsof -rfsxX -p no:pkgcore -p no:flaky \
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+
+ "${EPYTHON}" -m pytest -vv --lsof -rfsxX -p xdist \
-n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" ||
die "Tests failed with ${EPYTHON}"
}