commit:     4495defb562745ada372e3406e93c270ba659ae9
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 15 00:57:13 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Aug 15 01:39:42 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4495defb

dev-python/pygame: skip likely flaky test_queue

Fails for me, and according to an upstream issue that test depends
on timing and may be flaky.

Albeit alternatively it *could* be related to newer libsdl2/sdl2-mixer
but I haven't spent more time on this. I do not believe this test
failing will necessarily imply runtime issues either way (upstream also
skips it for one platform).

Closes: https://bugs.gentoo.org/951940
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 dev-python/pygame/pygame-2.6.1.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dev-python/pygame/pygame-2.6.1.ebuild 
b/dev-python/pygame/pygame-2.6.1.ebuild
index e9e2aef20a7b..556da769fd6e 100644
--- a/dev-python/pygame/pygame-2.6.1.ebuild
+++ b/dev-python/pygame/pygame-2.6.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -78,6 +78,11 @@ python_configure_all() {
 }
 
 python_test() {
+       # Seems(?) there is no way to easily skip individual tests, but
+       # an msys2 hack exists which we can re-use for now (bug #951940).
+       # https://github.com/pygame/pygame/pull/4267
+       local -x PYGAME_MSYS2=1
+
        local -x SDL_VIDEODRIVER=dummy
        local -x SDL_AUDIODRIVER=disk
        script -eqc "${EPYTHON} -m pygame.tests -v" || die

Reply via email to