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 - pip install pep8 pyflakes
- pep8 PIL/*.py - pep8 PIL/*.py
- pyflakes PIL/*.py - pyflakes PIL/*.py
- pep8 test/*.py
- pyflakes test/*.py
- pep8 Tests/*.py - pep8 Tests/*.py
- pyflakes Tests/*.py - pyflakes Tests/*.py

View File

@ -1,7 +1,5 @@
from tester import unittest, PillowTestCase, lena from tester import unittest, PillowTestCase, lena
from PIL import Image
from PIL import Image from PIL import Image
from PIL import ImageColor from PIL import ImageColor
from PIL import ImageDraw from PIL import ImageDraw
@ -146,7 +144,8 @@ class TestImageDraw(PillowTestCase):
del draw del draw
# Assert # 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): def test_pieslice1(self):
self.helper_pieslice(bbox1) self.helper_pieslice(bbox1)
@ -170,7 +169,6 @@ class TestImageDraw(PillowTestCase):
def test_point1(self): def test_point1(self):
self.helper_point(points1) self.helper_point(points1)
def test_point2(self): def test_point2(self):
self.helper_point(points2) self.helper_point(points2)
@ -190,11 +188,9 @@ class TestImageDraw(PillowTestCase):
def test_polygon1(self): def test_polygon1(self):
self.helper_polygon(points1) self.helper_polygon(points1)
def test_polygon2(self): def test_polygon2(self):
self.helper_polygon(points2) self.helper_polygon(points2)
def helper_rectangle(self, bbox): def helper_rectangle(self, bbox):
# Arrange # Arrange
im = Image.new("RGB", (w, h)) im = Image.new("RGB", (w, h))