This commit is contained in:
Tsung-Po Sun 2021-01-31 15:44:14 +09:00 committed by Andrew Murray
parent df0273e024
commit 87e7e88591

View File

@ -1350,6 +1350,7 @@ def test_compute_regular_polygon_vertices_input_error_handling(
ImageDraw._compute_regular_polygon_vertices(bounding_circle, n_sides, rotation)
assert str(e.value) == error_message
def test_continuous_horizontal_edges_polygon():
with Image.open(
os.path.join(IMAGES_PATH, "continuous_horizontal_edges_polygon.png")
@ -1366,7 +1367,7 @@ def test_continuous_horizontal_edges_polygon():
(4, 8),
(3, 8),
(2, 8),
(2, 7)
(2, 7),
]
img, draw = create_base_image_draw((16, 16))
draw.polygon(xy, BLACK)