dev-python/pyrate-limiter: Use EPYTEST_XDIST

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2023-11-03 20:20:11 +01:00
parent efb3420408
commit be0e95a40c

View File

@@ -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
}