dev-python/moderngl: Enable tests

Closes: https://bugs.gentoo.org/893394
Signed-off-by: Henri Gasc <gasc@eurecom.fr>
This commit is contained in:
Henri Gasc
2023-02-06 14:30:21 +01:00
parent ad9d25aaf8
commit 20fa7fcdad

View File

@@ -6,7 +6,7 @@ EAPI=8
DISTUTILS_USE_PEP517=setuptools DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} ) PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1 inherit distutils-r1 virtualx
DESCRIPTION="Modern OpenGL binding for python" DESCRIPTION="Modern OpenGL binding for python"
HOMEPAGE="https://github.com/moderngl/moderngl https://pypi.org/project/moderngl" HOMEPAGE="https://github.com/moderngl/moderngl https://pypi.org/project/moderngl"
@@ -34,14 +34,13 @@ BDEPEND="
" "
DEPEND="${BDEPEND}" DEPEND="${BDEPEND}"
# Tests are deactivated because we cannot open display distutils_enable_tests pytest
# distutils_enable_tests pytest
# python_test() {
# cd "${T}" || die
# epytest "${S}"/tests
# }
pkg_postinst() { src_test() {
use test && ewarn The tests for this package are deactivated because the test display can not be opened. virtx distutils-r1_src_test
use test && ewarn If you know how to solve this issue, please do so. }
python_test() {
rm "${S}/tests/test_local.py"
cd "${T}" || die
epytest "${S}"/tests
} }