commit:     b6c00864acd6b9bb7a032d3221855cd131764f62
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 15 15:31:36 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Wed Dec 15 17:11:58 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6c00864

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 <AT> gentoo.org>

 dev-python/pyglet/pyglet-1.5.21.ebuild | 15 ++++++++-------
 1 file 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() {

Reply via email to