commit: 659820a2c00645639e49e058018df06fe1c23089 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> AuthorDate: Sat Dec 19 15:57:09 2020 +0000 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> CommitDate: Sat Dec 19 15:57:09 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=659820a2
dev-python/funcy: Add test Closes: https://bugs.gentoo.org/731832 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> dev-python/funcy/funcy-1.14.ebuild | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/dev-python/funcy/funcy-1.14.ebuild b/dev-python/funcy/funcy-1.14.ebuild index dbae274d880..babc4c8350d 100644 --- a/dev-python/funcy/funcy-1.14.ebuild +++ b/dev-python/funcy/funcy-1.14.ebuild @@ -13,7 +13,19 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 x86" -IUSE="" +IUSE="test" +RESTRICT="!test? ( test )" DEPEND="" RDEPEND="${DEPEND}" +BDEPEND=" + ${RDEPEND} + test? ( + dev-python/whatever[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + )" + +python_test() { + distutils_install_for_testing --via-root + pytest || die "Tests fail with ${EPYTHON}" +}
