mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 21:24:31 +03:00
pep8/pyflakes
This commit is contained in:
parent
2bde38d8f5
commit
d082c58043
|
@ -45,5 +45,7 @@ after_success:
|
|||
- pip install pep8 pyflakes
|
||||
- pep8 PIL/*.py
|
||||
- pyflakes PIL/*.py
|
||||
- pep8 test/*.py
|
||||
- pyflakes test/*.py
|
||||
- pep8 Tests/*.py
|
||||
- pyflakes Tests/*.py
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
from tester import unittest, PillowTestCase, lena
|
||||
|
||||
from PIL import Image
|
||||
|
||||
from PIL import Image
|
||||
from PIL import ImageColor
|
||||
from PIL import ImageDraw
|
||||
|
@ -146,7 +144,8 @@ class TestImageDraw(PillowTestCase):
|
|||
del draw
|
||||
|
||||
# Assert
|
||||
self.assert_image_equal(im, Image.open("Tests/images/imagedraw_pieslice.png"))
|
||||
self.assert_image_equal(
|
||||
im, Image.open("Tests/images/imagedraw_pieslice.png"))
|
||||
|
||||
def test_pieslice1(self):
|
||||
self.helper_pieslice(bbox1)
|
||||
|
@ -170,7 +169,6 @@ class TestImageDraw(PillowTestCase):
|
|||
def test_point1(self):
|
||||
self.helper_point(points1)
|
||||
|
||||
|
||||
def test_point2(self):
|
||||
self.helper_point(points2)
|
||||
|
||||
|
@ -190,11 +188,9 @@ class TestImageDraw(PillowTestCase):
|
|||
def test_polygon1(self):
|
||||
self.helper_polygon(points1)
|
||||
|
||||
|
||||
def test_polygon2(self):
|
||||
self.helper_polygon(points2)
|
||||
|
||||
|
||||
def helper_rectangle(self, bbox):
|
||||
# Arrange
|
||||
im = Image.new("RGB", (w, h))
|
||||
|
|
Loading…
Reference in New Issue
Block a user