From 5923f95f3147dda0763f9f3bb4e820bc38b5bd6c Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 10 Apr 2020 12:15:01 +1000 Subject: [PATCH] Adjusted symmetry test --- Tests/test_imagedraw.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Tests/test_imagedraw.py b/Tests/test_imagedraw.py index cc29c097e..7a900283e 100644 --- a/Tests/test_imagedraw.py +++ b/Tests/test_imagedraw.py @@ -293,8 +293,11 @@ def test_ellipse_edge(): def test_ellipse_symmetric(): - for bbox in [(24, 25, 76, 75), (25, 25, 75, 75), (25, 24, 75, 76)]: - im = Image.new("RGB", (101, 101)) + for width, bbox in ( + (100, (24, 24, 75, 75)), + (101, (25, 25, 75, 75)), + ): + im = Image.new("RGB", (width, 100)) draw = ImageDraw.Draw(im) draw.ellipse(bbox, fill="green", outline="blue") assert_image_equal(im, im.transpose(Image.FLIP_LEFT_RIGHT))