mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 10:16:17 +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
|
# Alpha images are handled differently internally
|
||||||
im = Image.new('RGBA', (10, 10), 'green')
|
im = Image.new('RGBA', (10, 10), 'green')
|
||||||
im = im.rotate(45, expand=1)
|
im = im.rotate(45, expand=1)
|
||||||
corner = im.getpixel((0,0))
|
corner = im.getpixel((0, 0))
|
||||||
self.assertEqual(corner, (0, 0, 0, 0))
|
self.assertEqual(corner, (0, 0, 0, 0))
|
||||||
|
|
||||||
def test_alpha_rotate_with_fill(self):
|
def test_alpha_rotate_with_fill(self):
|
||||||
# Alpha images are handled differently internally
|
# Alpha images are handled differently internally
|
||||||
im = Image.new('RGBA', (10, 10), 'green')
|
im = Image.new('RGBA', (10, 10), 'green')
|
||||||
im = im.rotate(45, expand=1, fillcolor=(255, 0, 0, 255))
|
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))
|
self.assertEqual(corner, (255, 0, 0, 255))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -622,12 +622,12 @@ class TestImageDraw(PillowTestCase):
|
||||||
["red", "#f00"]
|
["red", "#f00"]
|
||||||
]:
|
]:
|
||||||
for operation, args in {
|
for operation, args in {
|
||||||
'chord':[BBOX1, 0, 180],
|
'chord': [BBOX1, 0, 180],
|
||||||
'ellipse':[BBOX1],
|
'ellipse': [BBOX1],
|
||||||
'shape':[s],
|
'shape': [s],
|
||||||
'pieslice':[BBOX1, -90, 45],
|
'pieslice': [BBOX1, -90, 45],
|
||||||
'polygon':[[(18, 30), (85, 30), (60, 72)]],
|
'polygon': [[(18, 30), (85, 30), (60, 72)]],
|
||||||
'rectangle':[BBOX1]
|
'rectangle': [BBOX1]
|
||||||
}.items():
|
}.items():
|
||||||
# Arrange
|
# Arrange
|
||||||
im = Image.new(mode, (W, H))
|
im = Image.new(mode, (W, H))
|
||||||
|
|
|
@ -84,7 +84,7 @@ class TestImageOps(PillowTestCase):
|
||||||
("h", None, (im.width * 4, im.height * 2)),
|
("h", None, (im.width * 4, im.height * 2)),
|
||||||
("v", "#f00", (im.width * 2, im.height * 4))
|
("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,
|
new_im = ImageOps.pad(im, new_size,
|
||||||
color=color, centering=centering)
|
color=color, centering=centering)
|
||||||
self.assertEqual(new_im.size, new_size)
|
self.assertEqual(new_im.size, new_size)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user