mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-24 17:06:16 +03:00
Missing whitespace
This commit is contained in:
parent
9ee467d843
commit
6dd0e48d9a
|
@ -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))
|
||||
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user