Revert "python313Packages.pygame: fix build by skipping tests"

This reverts commit 124b6649ba.
The patch wouldn't apply and it passes for me without it.
This commit is contained in:
Vladimír Čunát
2026-02-21 11:24:52 +01:00
parent cb6e0b3b16
commit a2f88f6fcb
3 changed files with 0 additions and 43 deletions
@@ -75,9 +75,6 @@ buildPythonPackage rec {
# https://github.com/pygame/pygame/pull/4651
./0001-Use-SDL_AllocFormat-instead-of-creating-it-manually.patch
# test_make_surface__subclassed_surface fails in headless environment
./skip-pixelarray-test.patch
];
postPatch = ''
@@ -1,12 +0,0 @@
diff --git a/test/pixelarray_test.py b/test/pixelarray_test.py
index 1111111..2222222 100644
--- a/test/pixelarray_test.py
+++ b/test/pixelarray_test.py
@@ -1005,6 +1005,7 @@ class PixelArrayTypeTest(unittest.TestCase, TestMixin):
self.assertEqual(new_surface.get_palette(), expected_palette)
pygame.display.quit()
+ @unittest.skip("fails in headless environment due to surface flags mismatch")
def test_make_surface__subclassed_surface(self):
"""Ensure make_surface can handle subclassed surfaces."""
@@ -1,28 +0,0 @@
diff --git a/test/surface_test.py b/test/surface_test.py
index b1147d27..c7ba2928 100644
--- a/test/surface_test.py
+++ b/test/surface_test.py
@@ -239,6 +239,7 @@ class SurfaceTypeTest(unittest.TestCase):
for pt in test_utils.rect_outer_bounds(fill_rect):
self.assertNotEqual(s1.get_at(pt), color)
+ @unittest.skipIf(True, "AssertionError: 0 is not true")
def test_fill_rle(self):
"""Test RLEACCEL flag with fill()"""
color = (250, 25, 25, 255)
@@ -346,6 +347,7 @@ class SurfaceTypeTest(unittest.TestCase):
finally:
pygame.display.quit()
+ @unittest.skipIf(True, "https://github.com/libsdl-org/SDL/pull/14429")
def test_solarwolf_rle_usage_2(self):
"""Test for RLE status after setting alpha"""
@@ -377,6 +379,7 @@ class SurfaceTypeTest(unittest.TestCase):
finally:
pygame.display.quit()
+ @unittest.skipIf(True, "https://github.com/libsdl-org/SDL/issues/14424")
def test_set_alpha__set_colorkey_rle(self):
pygame.display.init()
try: