Skip to content

Commit f3a84c8

Browse files
change test cases, docs
1 parent b0a3432 commit f3a84c8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

docs/reST/ref/surface.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,8 @@
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

test/surface_test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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))

0 commit comments

Comments
 (0)