Missing whitespace

This commit is contained in:
Andrew Murray 2018-09-27 19:43:39 +10:00
parent 9ee467d843
commit 6dd0e48d9a
3 changed files with 9 additions and 9 deletions

View File

@ -114,14 +114,14 @@ class TestImageRotate(PillowTestCase):
# Alpha images are handled differently internally
im = Image.new('RGBA', (10, 10), 'green')
im = im.rotate(45, expand=1)
corner = im.getpixel((0,0))
corner = im.getpixel((0, 0))
self.assertEqual(corner, (0, 0, 0, 0))
def test_alpha_rotate_with_fill(self):
# Alpha images are handled differently internally
im = Image.new('RGBA', (10, 10), 'green')
im = im.rotate(45, expand=1, fillcolor=(255, 0, 0, 255))
corner = im.getpixel((0,0))
corner = im.getpixel((0, 0))
self.assertEqual(corner, (255, 0, 0, 255))

View File

@ -622,12 +622,12 @@ class TestImageDraw(PillowTestCase):
["red", "#f00"]
]:
for operation, args in {
'chord':[BBOX1, 0, 180],
'ellipse':[BBOX1],
'shape':[s],
'pieslice':[BBOX1, -90, 45],
'polygon':[[(18, 30), (85, 30), (60, 72)]],
'rectangle':[BBOX1]
'chord': [BBOX1, 0, 180],
'ellipse': [BBOX1],
'shape': [s],
'pieslice': [BBOX1, -90, 45],
'polygon': [[(18, 30), (85, 30), (60, 72)]],
'rectangle': [BBOX1]
}.items():
# Arrange
im = Image.new(mode, (W, H))

View File

@ -84,7 +84,7 @@ class TestImageOps(PillowTestCase):
("h", None, (im.width * 4, im.height * 2)),
("v", "#f00", (im.width * 2, im.height * 4))
]:
for i, centering in enumerate([(0,0), (0.5, 0.5), (1, 1)]):
for i, centering in enumerate([(0, 0), (0.5, 0.5), (1, 1)]):
new_im = ImageOps.pad(im, new_size,
color=color, centering=centering)
self.assertEqual(new_im.size, new_size)