Skip to content

Commit 3b4b8f4

Browse files
committed
fix surface_test formatting
1 parent ad0a14d commit 3b4b8f4

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

test/surface_test.py

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3663,34 +3663,26 @@ def test_blit_blend_premultiplied_pixelformats(self):
36633663
bgra_surf_b = pygame.image.frombytes(byte_surf_b, (64, 64), "ARGB")
36643664

36653665
argb_surf_a.fill((64, 0, 0, 128))
3666-
self.assertEqual(argb_surf_a.get_at((0, 0)),
3667-
pygame.Color(64, 0, 0, 128))
3666+
self.assertEqual(argb_surf_a.get_at((0, 0)), pygame.Color(64, 0, 0, 128))
36683667

36693668
# 128 green, 128 blue at 50% alpha, premultiplied
36703669
argb_surf_b.fill((0, 64, 64, 128))
3671-
self.assertEqual(argb_surf_b.get_at((0, 0)),
3672-
pygame.Color(0, 64, 64, 128))
3670+
self.assertEqual(argb_surf_b.get_at((0, 0)), pygame.Color(0, 64, 64, 128))
36733671

3674-
argb_surf_a.blit(argb_surf_b, (0, 0),
3675-
special_flags=pygame.BLEND_PREMULTIPLIED)
3672+
argb_surf_a.blit(argb_surf_b, (0, 0), special_flags=pygame.BLEND_PREMULTIPLIED)
36763673

3677-
self.assertEqual(argb_surf_a.get_at((0, 0)),
3678-
pygame.Color(32, 64, 64, 192))
3674+
self.assertEqual(argb_surf_a.get_at((0, 0)), pygame.Color(32, 64, 64, 192))
36793675

36803676
bgra_surf_a.fill((64, 0, 0, 128)) # 128 red at 50% alpha
3681-
self.assertEqual(bgra_surf_a.get_at((0, 0)),
3682-
pygame.Color(64, 0, 0, 128))
3677+
self.assertEqual(bgra_surf_a.get_at((0, 0)), pygame.Color(64, 0, 0, 128))
36833678

36843679
# 128 green, 128 blue at 50% alpha, premultiplied
36853680
bgra_surf_b.fill((0, 64, 64, 128))
3686-
self.assertEqual(bgra_surf_b.get_at((0, 0)),
3687-
pygame.Color(0, 64, 64, 128))
3681+
self.assertEqual(bgra_surf_b.get_at((0, 0)), pygame.Color(0, 64, 64, 128))
36883682

3689-
bgra_surf_a.blit(bgra_surf_b, (0, 0),
3690-
special_flags=pygame.BLEND_PREMULTIPLIED)
3683+
bgra_surf_a.blit(bgra_surf_b, (0, 0), special_flags=pygame.BLEND_PREMULTIPLIED)
36913684

3692-
self.assertEqual(bgra_surf_a.get_at((0, 0)),
3693-
pygame.Color(32, 64, 64, 192))
3685+
self.assertEqual(bgra_surf_a.get_at((0, 0)), pygame.Color(32, 64, 64, 192))
36943686

36953687
def test_blit_blend_big_rect(self):
36963688
"""test that an oversized rect works ok."""

0 commit comments

Comments
 (0)