Skip to content

Commit

Permalink
dev-python/pytidylib: Use distutils_enable_tests
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Dec 16, 2019
1 parent 65b1533 commit 3cbeae8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions dev-python/pytidylib/pytidylib-0.3.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3cbeae8

Please sign in to comment.