summaryrefslogtreecommitdiff
path: root/dev-python/pytest-xdist/pytest-xdist-3.8.0.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pytest-xdist/pytest-xdist-3.8.0.ebuild')
-rw-r--r--dev-python/pytest-xdist/pytest-xdist-3.8.0.ebuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/dev-python/pytest-xdist/pytest-xdist-3.8.0.ebuild b/dev-python/pytest-xdist/pytest-xdist-3.8.0.ebuild
index 8b224d8fe0ba..7eaef3c4501c 100644
--- a/dev-python/pytest-xdist/pytest-xdist-3.8.0.ebuild
+++ b/dev-python/pytest-xdist/pytest-xdist-3.8.0.ebuild
@@ -32,12 +32,16 @@ BDEPEND="
)
"
-EPYTEST_PLUGINS=()
+EPYTEST_PLUGIN_LOAD_VIA_ENV=1
+EPYTEST_PLUGINS=( "${PN}" )
distutils_enable_tests pytest
-python_test() {
- # force loading necessary plugins in subprocesses
- local -x PYTEST_PLUGINS=xdist.plugin,xdist.looponfail
+PATCHES=(
+ # https://github.com/pytest-dev/pytest-xdist/commit/0c984478f39d7a01aa24c061f2581bdfd071cb6a
+ # https://github.com/pytest-dev/pytest-xdist/commit/44f4bea2652e06e7cd5d4a063aa2673b5ef701ee
+ "${FILESDIR}/${P}-pytest-9.patch"
+)
+python_test() {
epytest -o tmp_path_retention_count=1
}