summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-01-15 10:58:15 +0100
committerMichał Górny <mgorny@gentoo.org>2022-01-15 10:59:14 +0100
commit80519da16af0c18e55112d779224667c5dd659af (patch)
tree73f4ac600ab225252958266f4b6c418dc3d8adff /dev-python/pytest-rerunfailures
parentdev-python/ipython: Keyword 8.0.0-r1 ia64, #808378 (diff)
downloadgentoo-80519da16af0c18e55112d779224667c5dd659af.tar.gz
gentoo-80519da16af0c18e55112d779224667c5dd659af.tar.bz2
gentoo-80519da16af0c18e55112d779224667c5dd659af.zip
dev-python/pytest-rerunfailures: Eliminate the blocker on flaky
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pytest-rerunfailures')
-rw-r--r--dev-python/pytest-rerunfailures/pytest-rerunfailures-10.2.ebuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/dev-python/pytest-rerunfailures/pytest-rerunfailures-10.2.ebuild b/dev-python/pytest-rerunfailures/pytest-rerunfailures-10.2.ebuild
index d85bc8bcd009..9bb95d7201ad 100644
--- a/dev-python/pytest-rerunfailures/pytest-rerunfailures-10.2.ebuild
+++ b/dev-python/pytest-rerunfailures/pytest-rerunfailures-10.2.ebuild
@@ -17,7 +17,15 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 s
BDEPEND="
>=dev-python/pytest-5.0[${PYTHON_USEDEP}]
- test? ( !!dev-python/flaky )
"
distutils_enable_tests pytest
+
+python_test() {
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ local -x PYTEST_PLUGINS=pytest_rerunfailures
+ if has_version "dev-python/pytest-xdist[${PYTHON_USEDEP}]"; then
+ PYTEST_PLUGINS+=,xdist.plugin
+ fi
+ epytest
+}