mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/pyrate-limiter: Use EPYTEST_XDIST
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -6,7 +6,7 @@ EAPI=8
|
||||
DISTUTILS_USE_PEP517=poetry
|
||||
PYTHON_COMPAT=( python3_{10..11} )
|
||||
|
||||
inherit distutils-r1 multiprocessing pypi
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Python Rate-Limiter using Leaky-Bucket Algorimth Family"
|
||||
HOMEPAGE="
|
||||
@@ -26,7 +26,6 @@ RDEPEND="
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
@@ -37,6 +36,7 @@ EPYTEST_DESELECT=(
|
||||
# Python 3.11 is slightly faster, leading to a non-critical failure here
|
||||
"tests/test_concurrency.py::test_concurrency[ProcessPoolExecutor-SQLiteBucket]"
|
||||
)
|
||||
EPYTEST_XDIST=1
|
||||
|
||||
# TODO: package sphinx-copybutton
|
||||
# distutils_enable_sphinx docs \
|
||||
@@ -67,7 +67,3 @@ src_test() {
|
||||
# Clean up afterwards
|
||||
kill "$(<"${redis_pid}")" || die
|
||||
}
|
||||
|
||||
python_test() {
|
||||
epytest -n "$(makeopts_jobs)" --dist=worksteal
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user