commit:     c08e31285766d3ebef86473c7fc3090afe2761e5
Author:     Wolfgang E. Sanyer <WolfgangESanyer <AT> gmail <DOT> com>
AuthorDate: Tue Feb 23 14:17:20 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Tue Feb 23 14:30:30 2021 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=c08e3128

app-offic/visidata: use distutils_enable_tests

Signed-off-by: Wolfgang E. Sanyer <WolfgangESanyer <AT> gmail.com>
Closes: https://github.com/gentoo/sci/pull/1057
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>

 app-office/visidata/visidata-2.1.1.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/app-office/visidata/visidata-2.1.1.ebuild 
b/app-office/visidata/visidata-2.1.1.ebuild
index 8a63fed59..a214036d8 100644
--- a/app-office/visidata/visidata-2.1.1.ebuild
+++ b/app-office/visidata/visidata-2.1.1.ebuild
@@ -15,8 +15,6 @@ 
SRC_URI="https://github.com/saulpw/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="test"
-RESTRICT="!test? ( test )"
 
 RDEPEND="dev-python/python-dateutil[${PYTHON_USEDEP}]"
 BDEPEND="
@@ -36,6 +34,8 @@ BDEPEND="
 #      dev-python/sphinx-argparse
 # dev-python/sphinx-markdown-tables
 
+distutils_enable_tests pytest
+
 python_prepare_all() {
        rm tests/load-http.vd || die "Could not remove network-dependent test."
        rm tests/graph-cursor-nosave.vd || die "Could not remove 
network-dependent test."
@@ -53,6 +53,7 @@ python_prepare_all() {
 python_test() {
        git init || die "Git init failed."
        git add tests/golden/ || die "Git add failed."
+       # this test script eventually calls pytest under the hood
        dev/test.sh || die "Tests failed."
        rm .git -rf || die "Could not clean up git test directory."
 }

Reply via email to