mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +03:00
Adjusted symmetry test
This commit is contained in:
parent
68f87e14ca
commit
5923f95f31
|
@ -293,8 +293,11 @@ def test_ellipse_edge():
|
||||||
|
|
||||||
|
|
||||||
def test_ellipse_symmetric():
|
def test_ellipse_symmetric():
|
||||||
for bbox in [(24, 25, 76, 75), (25, 25, 75, 75), (25, 24, 75, 76)]:
|
for width, bbox in (
|
||||||
im = Image.new("RGB", (101, 101))
|
(100, (24, 24, 75, 75)),
|
||||||
|
(101, (25, 25, 75, 75)),
|
||||||
|
):
|
||||||
|
im = Image.new("RGB", (width, 100))
|
||||||
draw = ImageDraw.Draw(im)
|
draw = ImageDraw.Draw(im)
|
||||||
draw.ellipse(bbox, fill="green", outline="blue")
|
draw.ellipse(bbox, fill="green", outline="blue")
|
||||||
assert_image_equal(im, im.transpose(Image.FLIP_LEFT_RIGHT))
|
assert_image_equal(im, im.transpose(Image.FLIP_LEFT_RIGHT))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user