dev-python/pytidylib: Use distutils_enable_tests
authorMichał Górny <mgorny@gentoo.org>
Mon, 16 Dec 2019 14:01:24 +0000 (15:01 +0100)
committerMichał Górny <mgorny@gentoo.org>
Mon, 16 Dec 2019 14:37:37 +0000 (15:37 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-python/pytidylib/pytidylib-0.3.2.ebuild

index 2a0933e518b0e7dc771da1cf15214c2ab46217df..a46098e9a0a62cb0d33e99cbb7fa72598f861c8c 100644 (file)
@@ -15,13 +15,8 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
 SLOT="0"
 LICENSE="MIT"
 KEYWORDS="~alpha amd64 ~arm arm64 hppa ia64 ~mips ppc ppc64 ~s390 ~sh sparc x86"
-IUSE="test"
-RESTRICT="!test? ( test )"
 
 RDEPEND="app-text/htmltidy"
-DEPEND="${RDEPEND}
-       test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+DEPEND=${RDEPEND}
 
-python_test() {
-       pytest -vv || die
-}
+distutils_enable_tests pytest