From 1af404bb54f0adb21b8e1b8f5eaf1b9e8d3fa0f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Dudfield?= Date: Sun, 5 Nov 2023 10:11:32 +0100 Subject: [PATCH 1/2] surface: Format fix --- src_c/surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src_c/surface.c b/src_c/surface.c index cf6592ce5d..958ce43f3a 100644 --- a/src_c/surface.c +++ b/src_c/surface.c @@ -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); From 99360c46d64ef73fd0af73f7932fea8c5845aa69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Dudfield?= Date: Sun, 5 Nov 2023 10:11:54 +0100 Subject: [PATCH 2/2] draw_test: Format fix --- test/draw_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/draw_test.py b/test/draw_test.py index 74a003b18f..d139e46237 100644 --- a/test/draw_test.py +++ b/test/draw_test.py @@ -3691,7 +3691,7 @@ class to add any draw.aalines specific tests to. [0, 2], [2, 2], ) - + class DrawPolygonMixin: """Mixin tests for drawing polygons. @@ -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)) @@ -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.