Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.gentoo.dev > #70516
| From | Michał Górny <mgorny@gentoo.org> |
|---|---|
| Newsgroups | linux.gentoo.dev |
| Subject | [gentoo-dev] [PATCH 8/8] python-utils-r1.eclass: workaround bad interaction with pytest-{timeout,rerunfailures} |
| Date | 2026-05-07 20:20 +0200 |
| Message-ID | <MSbuh-3l9v-5@gated-at.bofh.it> (permalink) |
| References | <MSbkB-3l60-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Alfred Wingate <parona@protonmail.com>
Bug: https://bugs.gentoo.org/931020
Bug: https://bugs.gentoo.org/907289
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
---
eclass/python-utils-r1.eclass | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index a060115800477..462126a47970d 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -1561,6 +1561,15 @@ epytest() {
args+=(
"--timeout=${EPYTEST_TIMEOUT}"
)
+
+ if [[ -n ${EPYTEST_RERUNS} ]]; then
+ # This option helps with hangs in some cases when these plugins are used together.
+ # https://github.com/pytest-dev/pytest-timeout/issues/18
+ # https://github.com/pytest-dev/pytest-rerunfailures/issues/99
+ args+=(
+ -o timeout_func_only=true
+ )
+ fi
fi
if [[ ${EPYTEST_XDIST} ]]; then
Back to linux.gentoo.dev | Previous | Next — Previous in thread | Find similar
[gentoo-dev] [PATCH 1/8] profiles/desc: Add Python 3.15 targets Michał Górny <mgorny@gentoo.org> - 2026-05-07 20:10 +0200
[gentoo-dev] [PATCH 8/8] python-utils-r1.eclass: workaround bad interaction with pytest-{timeout,rerunfailures} Michał Górny <mgorny@gentoo.org> - 2026-05-07 20:20 +0200
csiph-web