Skip to content

Commit

Permalink
Skip new unit test if CI is running or the machine running doesn't ha…
Browse files Browse the repository at this point in the history
…ve the memory for it
  • Loading branch information
oddbookworm committed Jun 30, 2024
1 parent 38baab2 commit 1dc41d6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/draw_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import math
import unittest
import sys
import os
import warnings

import pygame
Expand Down Expand Up @@ -1847,12 +1847,16 @@ def test_line_clipping_with_thickness(self):
"start={}, end={}".format(end_points[n], start_points[n]),
)

@unittest.skipIf("CI" in os.environ, "Surface is too large for CI to handle")
def test_line_draw_large_surf_regression(self):
"""Regression test for https://github.com/pygame-community/pygame-ce/issues/2961"""
surface = pygame.Surface((43371, 43371))
try:
surface = pygame.Surface((14457, 37200))
except pygame.error:
self.skipTest("Surface too large to run this test in this environment")

point1 = [30021, 37135]
point2 = [30022, 37136]
point1 = [400, 37135]
point2 = [401, 37136]
pygame.draw.line(surface, (255, 255, 255), point1, point2, 1)


Expand Down

0 comments on commit 1dc41d6

Please sign in to comment.