Skip to content

Commit c612961

Browse files
committed
skip particular draw test if an out of memory error occurs
1 parent 17a77de commit c612961

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/draw_test.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1850,7 +1850,10 @@ def test_line_clipping_with_thickness(self):
18501850
@unittest.skipIf("CI" in os.environ, "Surface is too large for CI to handle")
18511851
def test_line_draw_large_surf_regression(self):
18521852
"""Regression test for https://github.com/pygame-community/pygame-ce/issues/2961"""
1853-
surface = pygame.Surface((14457, 37200))
1853+
try:
1854+
surface = pygame.Surface((14457, 37200))
1855+
except pygame.error:
1856+
self.skipTest("Surface too large to run this test in this environment")
18541857

18551858
point1 = [400, 37135]
18561859
point2 = [401, 37136]

0 commit comments

Comments
 (0)