commit: e867a60db788926c07ec393229777c03c7c24018
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 21 09:53:28 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Sep 21 09:54:16 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e867a60d
dev-python/urllib3: Use pytest-rerunfailures to fight flakiness
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/urllib3/urllib3-2.0.5.ebuild | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dev-python/urllib3/urllib3-2.0.5.ebuild
b/dev-python/urllib3/urllib3-2.0.5.ebuild
index 9a53866c278c..c19270adc8b6 100644
--- a/dev-python/urllib3/urllib3-2.0.5.ebuild
+++ b/dev-python/urllib3/urllib3-2.0.5.ebuild
@@ -38,6 +38,7 @@ BDEPEND="
dev-python/brotlicffi[\${PYTHON_USEDEP}]
dev-python/freezegun[\${PYTHON_USEDEP}]
dev-python/pytest[\${PYTHON_USEDEP}]
+ dev-python/pytest-rerunfailures[\${PYTHON_USEDEP}]
>=dev-python/tornado-4.2.1[\${PYTHON_USEDEP}]
>=dev-python/trustme-0.5.3[\${PYTHON_USEDEP}]
>=dev-python/zstandard-0.18.0[\${PYTHON_USEDEP}]
@@ -79,5 +80,6 @@ python_test() {
# plugins make tests slower, and more fragile
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- epytest
+ # some tests are very fragile to timing
+ epytest -p rerunfailures --reruns=10 --reruns-delay=2
}