From cb8b570c2e51c2c9150f264e2ca3becffbb2e833 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E8=BE=9B=E6=A0=BC?= Date: Fri, 5 Jul 2019 22:27:39 +0800 Subject: [PATCH] add float number to test --- Tests/test_imagedraw.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Tests/test_imagedraw.py b/Tests/test_imagedraw.py index a5f11e786..f070be77d 100644 --- a/Tests/test_imagedraw.py +++ b/Tests/test_imagedraw.py @@ -812,13 +812,14 @@ class TestImageDraw(PillowTestCase): im = hopper() draw = ImageDraw.Draw(im) + x0, y0, x1, y1 = 20, 20, 30.0, 30.0 xys = [ - [X0, Y0, X1, Y1], - [[X0, Y0], [X1, Y1]], - [(X0, Y0), (X1, Y1)], - (X0, Y0, X1, Y1), - ([X0, Y0], [X1, Y1]), - ((X0, Y0), (X1, Y1)), + [x0, y0, x1, y1], + [[x0, y0], [x1, y1]], + [(x0, y0), (x1, y1)], + (x0, y0, x1, y1), + ([x0, y0], [x1, y1]), + ((x0, y0), (x1, y1)), ] for xy in xys: