depot/third_party/nixpkgs/pkgs/development/python-modules/pygame-ce/skip-surface-tests.patch
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

26 lines
919 B
Diff

diff --git a/test/surface_test.py b/test/surface_test.py
index 5ce78b6e..8b8f7ed5 100644
--- a/test/surface_test.py
+++ b/test/surface_test.py
@@ -1091,6 +1091,10 @@ class GeneralSurfaceTests(unittest.TestCase):
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()."""
@@ -1118,6 +1122,10 @@ class GeneralSurfaceTests(unittest.TestCase):
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()."""