File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 247247 as Surface subclass inherit this method without the need to override,
248248 unless subclass specific instance attributes also need copying.
249249
250+ .. versionchanged :: 2.5.0 converting to a known format will succeed without a window/display surface.
251+
250252 .. ## Surface.convert ##
251253
252254 .. method :: convert_alpha
Original file line number Diff line number Diff line change @@ -1203,7 +1203,8 @@ def test_image_convert_bug_131(self):
12031203
12041204 pygame .display .init ()
12051205 try :
1206- pygame .display .set_mode ((640 , 480 ))
1206+
1207+ #pygame.display.set_mode((640, 480))
12071208
12081209 im = pygame .image .load (example_path (os .path .join ("data" , "city.png" )))
12091210 im2 = pygame .image .load (example_path (os .path .join ("data" , "brick.png" )))
@@ -1296,7 +1297,7 @@ def test_convert_alpha_SRCALPHA(self):
12961297 def test_convert_palettize (self ):
12971298 pygame .display .init ()
12981299 try :
1299- pygame .display .set_mode ((640 , 480 ))
1300+ # pygame.display.set_mode((640, 480))
13001301
13011302 surf = pygame .Surface ((150 , 250 ))
13021303 surf .fill ((255 , 50 , 0 ))
You can’t perform that action at this time.
0 commit comments