commit:     321ad3fa038c1f71a537cf5a0705b131aaef6357
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Fri Sep  2 10:08:05 2022 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Fri Sep  2 10:52:05 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=321ad3fa

app-admin/ansible-core: switch tests from nose to pytest

Still restricted, as it looks like it will need quite a lot more work
to make it run properly - but at least it will no longer be necessary
to jump through hoops in order to enable py3.11 support.

Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 app-admin/ansible-core/ansible-core-2.13.3.ebuild | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)

diff --git a/app-admin/ansible-core/ansible-core-2.13.3.ebuild 
b/app-admin/ansible-core/ansible-core-2.13.3.ebuild
index d4dfeb185432..3f9ae0c36f55 100644
--- a/app-admin/ansible-core/ansible-core-2.13.3.ebuild
+++ b/app-admin/ansible-core/ansible-core-2.13.3.ebuild
@@ -22,7 +22,6 @@ fi
 
 LICENSE="GPL-3"
 SLOT="0"
-IUSE="test"
 RESTRICT="test"
 
 RDEPEND="
@@ -39,23 +38,16 @@ RDEPEND="
        net-misc/sshpass
        virtual/ssh
 "
-DEPEND="
+BDEPEND="
        >=dev-python/packaging-16.6[${PYTHON_USEDEP}]
        test? (
-               ${RDEPEND}
-               dev-python/bcrypt[${PYTHON_USEDEP}]
-               dev-python/nose[${PYTHON_USEDEP}]
-               >=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
-               dev-python/passlib[${PYTHON_USEDEP}]
-               dev-python/coverage[${PYTHON_USEDEP}]
-               dev-vcs/git
+               dev-python/botocore[${PYTHON_USEDEP}]
+               dev-python/pytz[${PYTHON_USEDEP}]
        )"
 
+distutils_enable_tests pytest
+
 python_compile() {
        export ANSIBLE_SKIP_CONFLICT_CHECK=1
        distutils-r1_python_compile
 }
-
-python_test() {
-       nosetests -d -w test/units -v --with-coverage --cover-package=ansible 
--cover-branches || die
-}

Reply via email to