mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-04 20:03:20 +03:00
Linting changes
This commit is contained in:
parent
4b2746fc39
commit
ad70fc73cb
|
@ -323,7 +323,7 @@ class TestFileGif(PillowTestCase):
|
||||||
|
|
||||||
im_list = []
|
im_list = []
|
||||||
for circle in circles:
|
for circle in circles:
|
||||||
img = Image.new('RGB', (100, 100), (255,0,0))
|
img = Image.new('RGB', (100, 100), (255, 0, 0))
|
||||||
|
|
||||||
# Red circle in center of each frame
|
# Red circle in center of each frame
|
||||||
d = ImageDraw.Draw(img)
|
d = ImageDraw.Draw(img)
|
||||||
|
@ -355,16 +355,16 @@ class TestFileGif(PillowTestCase):
|
||||||
|
|
||||||
# 4 frames: red/blue, red/red, blue/blue, red/blue
|
# 4 frames: red/blue, red/red, blue/blue, red/blue
|
||||||
circles = [
|
circles = [
|
||||||
((255, 0, 0, 255),(0, 0, 255, 255)),
|
((255, 0, 0, 255), (0, 0, 255, 255)),
|
||||||
((255, 0, 0, 255),(255, 0, 0, 255)),
|
((255, 0, 0, 255), (255, 0, 0, 255)),
|
||||||
((0, 0, 255, 255),(0, 0, 255, 255)),
|
((0, 0, 255, 255), (0, 0, 255, 255)),
|
||||||
((255, 0, 0, 255),(0, 0, 255, 255))
|
((255, 0, 0, 255), (0, 0, 255, 255))
|
||||||
]
|
]
|
||||||
|
|
||||||
im_list = []
|
im_list = []
|
||||||
for i in range(len(circles)):
|
for i in range(len(circles)):
|
||||||
# Transparent BG
|
# Transparent BG
|
||||||
img = Image.new('RGBA', (100, 100), (255,255,255,0))
|
img = Image.new('RGBA', (100, 100), (255, 255, 255, 0))
|
||||||
|
|
||||||
# Two circles per frame
|
# Two circles per frame
|
||||||
d = ImageDraw.Draw(img)
|
d = ImageDraw.Draw(img)
|
||||||
|
@ -394,8 +394,7 @@ class TestFileGif(PillowTestCase):
|
||||||
self.assertEqual(rgb_img.getpixel((80, 50)), colours[1])
|
self.assertEqual(rgb_img.getpixel((80, 50)), colours[1])
|
||||||
|
|
||||||
# Check BG is correct colour
|
# Check BG is correct colour
|
||||||
self.assertEqual(rgb_img.getpixel((1, 1)), (255,255,255,0))
|
self.assertEqual(rgb_img.getpixel((1, 1)), (255, 255, 255, 0))
|
||||||
|
|
||||||
|
|
||||||
def test_iss634(self):
|
def test_iss634(self):
|
||||||
img = Image.open("Tests/images/iss634.gif")
|
img = Image.open("Tests/images/iss634.gif")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user