Skip to content

Commit

Permalink
Merge pull request pygame#4075 from pygame/format-fixes
Browse files Browse the repository at this point in the history
format fixes
  • Loading branch information
illume committed Nov 5, 2023
2 parents d377784 + 99360c4 commit 53fbb7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src_c/surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,7 @@ surf_copy(pgSurfaceObject *self, PyObject *_null)
if (!surf)
return RAISE(pgExc_SDLError, "display Surface quit");

/* SDL_ConvertSurface does not work on empty surface,
/* SDL_ConvertSurface does not work on empty surface,
* meaning all pixels are black (255).
*/
pgSurface_Prep(self);
Expand Down
4 changes: 2 additions & 2 deletions test/draw_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3691,7 +3691,7 @@ class to add any draw.aalines specific tests to.
[0, 2],
[2, 2],
)


class DrawPolygonMixin:
"""Mixin tests for drawing polygons.
Expand Down Expand Up @@ -4329,7 +4329,6 @@ def test_polygon__surface_clip(self):
# def extreme_y_fail(self):
# self.assertEqual(surface.get_at((300, 300)), white)


# # Checks the surface point to ensure the polygon has been drawn correctly.
# # Uses multiple passing and failing test cases depending on the polygon
# self.draw_polygon(surface, green, (point_a, point_b, extreme_points_coords))
Expand All @@ -4347,6 +4346,7 @@ def test_polygon__surface_clip(self):
# extreme_y_pass(self)
# extreme_y_fail(self)


class DrawPolygonTest(DrawPolygonMixin, DrawTestCase):
"""Test draw module function polygon.
Expand Down

0 comments on commit 53fbb7e

Please sign in to comment.