summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-12-15 16:31:36 +0100
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-12-15 18:11:58 +0100
commitb6c00864acd6b9bb7a032d3221855cd131764f62 (patch)
treeeef2d91cf1d64dd0681824e2786cc4e0f04daac6 /dev-python
parentdev-python/websockets: Stabilize 10.1 ppc64, #829284 (diff)
downloadgentoo-b6c00864acd6b9bb7a032d3221855cd131764f62.tar.gz
gentoo-b6c00864acd6b9bb7a032d3221855cd131764f62.tar.bz2
gentoo-b6c00864acd6b9bb7a032d3221855cd131764f62.zip
dev-python/pyglet: fix tests, enable py3.10
- virtx has to be moved otherwise test failure is ignored - Tests work just fine without gst-python Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/pyglet/pyglet-1.5.21.ebuild15
1 files changed, 8 insertions, 7 deletions
diff --git a/dev-python/pyglet/pyglet-1.5.21.ebuild b/dev-python/pyglet/pyglet-1.5.21.ebuild
index 724c64bd720d..ca7bceba3674 100644
--- a/dev-python/pyglet/pyglet-1.5.21.ebuild
+++ b/dev-python/pyglet/pyglet-1.5.21.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-PYTHON_COMPAT=( python3_{8..9} )
+PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1 virtualx xdg-utils
DESCRIPTION="Cross-platform windowing and multimedia library for Python"
@@ -18,7 +18,7 @@ IUSE="examples image +sound"
BDEPEND="
test? (
dev-python/pillow[${PYTHON_USEDEP}]
- dev-python/gst-python[${PYTHON_USEDEP}]
+ media-libs/fontconfig
)
"
RDEPEND="
@@ -39,16 +39,17 @@ DOCS=( DESIGN NOTICE README.md RELEASE_NOTES )
distutils_enable_tests pytest
-src_test() {
- virtx distutils-r1_src_test
-}
-
python_test() {
xdg_environment_reset
+ # Deselect openal test, can't open device in sandbox
+ local deselect=(
+ tests/unit/media/test_listener.py::test_openal_listener
+ )
+
# Specify path to avoid running interactive tests
# We could add in integration tests, but they're slow
- epytest tests/unit
+ virtx epytest tests/unit ${deselect[@]/#/--deselect }
}
python_install_all() {