mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-25 21:08:35 -07:00
dev-python/pytest-asyncio: Use distutils_enable_tests
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -16,11 +16,7 @@ SRC_URI="https://github.com/pytest-dev/pytest-asyncio/archive/v${PV}.tar.gz -> $
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~ppc64 x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/pytest[${PYTHON_USEDEP}]"
|
||||
DEPEND="
|
||||
test? (
|
||||
${RDEPEND}
|
||||
@@ -32,6 +28,8 @@ PATCHES=(
|
||||
"${FILESDIR}"/pytest-asyncio-0.10.0-py38.patch
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
python_test() {
|
||||
distutils_install_for_testing
|
||||
pytest -vv || die "Tests fail with ${EPYTHON}"
|
||||
|
||||
Reference in New Issue
Block a user