dev-python/atomicwrites: Enable tests
authorMichał Górny <mgorny@gentoo.org>
Mon, 1 May 2017 13:31:01 +0000 (15:31 +0200)
committerMichał Górny <mgorny@gentoo.org>
Mon, 1 May 2017 14:56:16 +0000 (16:56 +0200)
dev-python/atomicwrites/atomicwrites-1.1.5-r2.ebuild

index 71e648359d62aaa878390b985dbed94f858fc7d6..d916b495da1178c05575c8443900dacf7ab63774 100644 (file)
@@ -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}"
+}