diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-09-21 11:58:35 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-09-21 11:58:35 +0200 |
commit | 2df124a43f3aec9f20109f2b79d6d146df802103 (patch) | |
tree | 19dcb8507792fa3bae2b0f914b4e928241533513 /dev-python | |
parent | dev-python/urllib3: Use pytest-rerunfailures to fight flakiness (diff) | |
download | gentoo-2df124a43f3aec9f20109f2b79d6d146df802103.tar.gz gentoo-2df124a43f3aec9f20109f2b79d6d146df802103.tar.bz2 gentoo-2df124a43f3aec9f20109f2b79d6d146df802103.zip |
dev-python/urllib3: Use pytest-xdist
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/urllib3/urllib3-2.0.5.ebuild | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dev-python/urllib3/urllib3-2.0.5.ebuild b/dev-python/urllib3/urllib3-2.0.5.ebuild index c19270adc8b6..32852e31e793 100644 --- a/dev-python/urllib3/urllib3-2.0.5.ebuild +++ b/dev-python/urllib3/urllib3-2.0.5.ebuild @@ -9,7 +9,7 @@ PYTHON_TESTED=( python3_{10..12} pypy3 ) PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" ) PYTHON_REQ_USE="ssl(+)" -inherit distutils-r1 pypi +inherit distutils-r1 multiprocessing pypi DESCRIPTION="HTTP library with thread-safe connection pooling, file post, and more" HOMEPAGE=" @@ -39,6 +39,7 @@ BDEPEND=" dev-python/freezegun[\${PYTHON_USEDEP}] dev-python/pytest[\${PYTHON_USEDEP}] dev-python/pytest-rerunfailures[\${PYTHON_USEDEP}] + dev-python/pytest-xdist[\${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}] @@ -81,5 +82,6 @@ python_test() { # plugins make tests slower, and more fragile local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 # some tests are very fragile to timing - epytest -p rerunfailures --reruns=10 --reruns-delay=2 + epytest -p rerunfailures --reruns=10 --reruns-delay=2 \ + -p xdist -n "$(makeopts_jobs)" --dist=worksteal } |