commit:     7deec6c8d2f5f001e412c8129c6d9167f815b6f2
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 20 13:31:35 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Apr 20 15:48:54 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7deec6c8

dev-python/pytest-asyncio: Use distutils_enable_tests

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pytest-asyncio/pytest-asyncio-0.10.0.ebuild | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/dev-python/pytest-asyncio/pytest-asyncio-0.10.0.ebuild 
b/dev-python/pytest-asyncio/pytest-asyncio-0.10.0.ebuild
index f7b4cfba907..b5141f97fa0 100644
--- a/dev-python/pytest-asyncio/pytest-asyncio-0.10.0.ebuild
+++ b/dev-python/pytest-asyncio/pytest-asyncio-0.10.0.ebuild
@@ -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}"

Reply via email to