commit: a1dd466b93291a3cb40d06878aca0b2407f2fbf7
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 5 10:43:18 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jul 5 11:05:22 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1dd466b
dev-python/wheel: Use pytest-xdist for testing
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/wheel/wheel-0.45.1.ebuild | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dev-python/wheel/wheel-0.45.1.ebuild
b/dev-python/wheel/wheel-0.45.1.ebuild
index 7fa0a7ca64be..85ebbcc34385 100644
--- a/dev-python/wheel/wheel-0.45.1.ebuild
+++ b/dev-python/wheel/wheel-0.45.1.ebuild
@@ -28,6 +28,9 @@ BDEPEND="
)
"
+# xdist is slightly flaky here
+EPYTEST_PLUGINS=( pytest-rerunfailures )
+EPYTEST_XDIST=1
distutils_enable_tests pytest
src_prepare() {
@@ -57,6 +60,5 @@ python_test() {
tests/test_bdist_wheel.py::test_licenses_override
)
- local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- epytest
+ epytest --reruns=5
}