diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-05-01 15:31:01 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-05-01 16:56:16 +0200 |
commit | a4b3497010cc10341ef83083db2423d0b6039479 (patch) | |
tree | 0c1d4f85dadc667ac83154913a9a2b4658c49437 /dev-python | |
parent | dev-python/atomicwrites: Add missing setuptools dep (diff) | |
download | gentoo-a4b3497010cc10341ef83083db2423d0b6039479.tar.gz gentoo-a4b3497010cc10341ef83083db2423d0b6039479.tar.bz2 gentoo-a4b3497010cc10341ef83083db2423d0b6039479.zip |
dev-python/atomicwrites: Enable tests
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/atomicwrites/atomicwrites-1.1.5-r2.ebuild | 9 |
1 files 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 71e648359d62..d916b495da11 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}" +} |