commit: a4b3497010cc10341ef83083db2423d0b6039479 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Mon May 1 13:31:01 2017 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Mon May 1 14:56:16 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4b34970
dev-python/atomicwrites: Enable tests dev-python/atomicwrites/atomicwrites-1.1.5-r2.ebuild | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dev-python/atomicwrites/atomicwrites-1.1.5-r2.ebuild b/dev-python/atomicwrites/atomicwrites-1.1.5-r2.ebuild index 71e648359d6..d916b495da1 100644 --- a/dev-python/atomicwrites/atomicwrites-1.1.5-r2.ebuild +++ b/dev-python/atomicwrites/atomicwrites-1.1.5-r2.ebuild @@ -13,8 +13,13 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="test" -DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/pytest[${PYTHON_USEDEP}] )" DOCS=( README.rst ) + +python_test() { + py.test -v || die "Tests fail with ${EPYTHON}" +}