pep8/pyflakes

This commit is contained in:
hugovk 2014-06-03 23:35:21 +03:00
parent 2bde38d8f5
commit d082c58043
2 changed files with 4 additions and 6 deletions

View File

@ -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

View File

@ -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))