dev-python/pyclip: Fix tests

Closes: https://bugs.gentoo.org/847169
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Ryan Fox <flewkey@2a03.party>
This commit is contained in:
Ryan Fox
2022-05-26 10:24:40 -07:00
parent 2eb58cd70e
commit a5e3b8259c
3 changed files with 35 additions and 9 deletions

View File

@@ -20,12 +20,20 @@ DESCRIPTION="Python clipboard module"
HOMEPAGE="https://pypi.org/project/pyclip/"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="test"
RESTRICT="!test? ( test )"
DEPEND=""
DEPEND="
test? ( dev-python/pytest[${PYTHON_USEDEP}] )
"
RDEPEND="
gui-apps/wl-clipboard
x11-misc/xclip
"
BDEPEND=""
distutils_enable_tests pytest
python_test() {
for unittest in "${S}/tests/"*".py"; do
"${EPYTHON}" "${unittest}" || die "Tests failed"
done
}