Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-rerunfailures/
Date: Sat, 15 Jan 2022 09:59:19
Message-Id: 1642240754.80519da16af0c18e55112d779224667c5dd659af.mgorny@gentoo
1 commit: 80519da16af0c18e55112d779224667c5dd659af
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 15 09:58:15 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 15 09:59:14 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80519da1
7
8 dev-python/pytest-rerunfailures: Eliminate the blocker on flaky
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../pytest-rerunfailures/pytest-rerunfailures-10.2.ebuild | 10 +++++++++-
13 1 file changed, 9 insertions(+), 1 deletion(-)
14
15 diff --git a/dev-python/pytest-rerunfailures/pytest-rerunfailures-10.2.ebuild b/dev-python/pytest-rerunfailures/pytest-rerunfailures-10.2.ebuild
16 index d85bc8bcd009..9bb95d7201ad 100644
17 --- a/dev-python/pytest-rerunfailures/pytest-rerunfailures-10.2.ebuild
18 +++ b/dev-python/pytest-rerunfailures/pytest-rerunfailures-10.2.ebuild
19 @@ -17,7 +17,15 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 s
20
21 BDEPEND="
22 >=dev-python/pytest-5.0[${PYTHON_USEDEP}]
23 - test? ( !!dev-python/flaky )
24 "
25
26 distutils_enable_tests pytest
27 +
28 +python_test() {
29 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
30 + local -x PYTEST_PLUGINS=pytest_rerunfailures
31 + if has_version "dev-python/pytest-xdist[${PYTHON_USEDEP}]"; then
32 + PYTEST_PLUGINS+=,xdist.plugin
33 + fi
34 + epytest
35 +}