Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pygame for openSUSE:Factory checked in at 2024-03-13 22:17:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pygame (Old) and /work/SRC/openSUSE:Factory/.python-pygame.new.1770 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pygame" Wed Mar 13 22:17:43 2024 rev:40 rq:1157037 version:2.5.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pygame/python-pygame.changes 2024-01-03 14:53:07.039937312 +0100 +++ /work/SRC/openSUSE:Factory/.python-pygame.new.1770/python-pygame.changes 2024-03-13 22:18:31.588156788 +0100 @@ -1,0 +2,6 @@ +Fri Mar 8 14:09:30 UTC 2024 - Ben Greiner <c...@bnavigator.de> + +- Skip failing tests with dummy video driver on SDL2 + * Add pygame-pr4169-videodummytests.patch gh#pygame/pygame#4169 + +------------------------------------------------------------------- New: ---- pygame-pr4169-videodummytests.patch BETA DEBUG BEGIN: New:- Skip failing tests with dummy video driver on SDL2 * Add pygame-pr4169-videodummytests.patch gh#pygame/pygame#4169 BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pygame.spec ++++++ --- /var/tmp/diff_new_pack.lDuzxf/_old 2024-03-13 22:18:33.016209323 +0100 +++ /var/tmp/diff_new_pack.lDuzxf/_new 2024-03-13 22:18:33.016209323 +0100 @@ -24,6 +24,8 @@ License: Apache-2.0 AND LGPL-2.1-or-later AND BSD-2-Clause AND BSD-3-Clause AND libpng-2.0 URL: https://github.com/pygame/pygame Source0: https://files.pythonhosted.org/packages/source/p/pygame/pygame-%{version}.tar.gz +# PATCH-FIX-UPSTREAM pygame-pr4169-videodummytests.patch gh#pygame/pygame#4169 +Patch0: pygame-pr4169-videodummytests.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module numpy} BuildRequires: %{python_module pip} ++++++ pygame-pr4169-videodummytests.patch ++++++ >From 656eb5d986873ec7297bd19afeee62f05d16170a Mon Sep 17 00:00:00 2001 From: Emily Trau <em...@downunderctf.com> Date: Tue, 5 Mar 2024 11:42:09 +1100 Subject: [PATCH] Skip surface tests that fail when `SDL_VIDEODRIVER=dummy` --- test/surface_test.py | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/test/surface_test.py b/test/surface_test.py index e6dc1ad095..b1147d278f 100644 --- a/test/surface_test.py +++ b/test/surface_test.py @@ -1091,6 +1091,10 @@ def test_image_convert_bug_131(self): finally: pygame.display.quit() + @unittest.skipIf( + os.environ.get("SDL_VIDEODRIVER") == "dummy", + 'requires a non-"dummy" SDL_VIDEODRIVER', + ) def test_convert_init(self): """Ensure initialization exceptions are raised for surf.convert().""" @@ -1101,12 +1105,11 @@ def test_convert_init(self): pygame.display.init() try: - if os.environ.get("SDL_VIDEODRIVER") != "dummy": - try: - surf.convert(32) - surf.convert(pygame.Surface((1, 1))) - except pygame.error: - self.fail("convert() should not raise an exception here.") + try: + surf.convert(32) + surf.convert(pygame.Surface((1, 1))) + except pygame.error: + self.fail("convert() should not raise an exception here.") self.assertRaisesRegex(pygame.error, "No video mode", surf.convert) @@ -1118,6 +1121,10 @@ def test_convert_init(self): finally: pygame.display.quit() + @unittest.skipIf( + os.environ.get("SDL_VIDEODRIVER") == "dummy", + 'requires a non-"dummy" SDL_VIDEODRIVER', + ) def test_convert_alpha_init(self): """Ensure initialization exceptions are raised for surf.convert_alpha()."""