Skip to content

Commit cad385e

Browse files
no need to set up display in tests any more
1 parent f3a84c8 commit cad385e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/draw_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@ def _create_surfaces():
10721072
for size in ((49, 49), (50, 50)):
10731073
for depth in (8, 16, 24, 32):
10741074
for flags in (0, SRCALPHA):
1075-
surface = pygame.display.set_mode(size, flags)
1075+
surface=pygame.Surface(size, depth=depth)
10761076
surfaces.append(surface)
10771077
surfaces.append(surface.convert_alpha())
10781078
return surfaces

0 commit comments

Comments
 (0)