mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Inline comment should start with '# '
This commit is contained in:
parent
f22f1628eb
commit
8116ee3738
|
@ -8,12 +8,12 @@ from PIL import Image, features, ImageDraw, ImageFont
|
||||||
class TestTTypeFontLeak(PillowLeakTestCase):
|
class TestTTypeFontLeak(PillowLeakTestCase):
|
||||||
# fails at iteration 3 in master
|
# fails at iteration 3 in master
|
||||||
iterations = 10
|
iterations = 10
|
||||||
mem_limit = 4096 #k
|
mem_limit = 4096 # k
|
||||||
|
|
||||||
def _test_font(self, font):
|
def _test_font(self, font):
|
||||||
im = Image.new('RGB', (255,255), 'white')
|
im = Image.new('RGB', (255,255), 'white')
|
||||||
draw = ImageDraw.ImageDraw(im)
|
draw = ImageDraw.ImageDraw(im)
|
||||||
self._test_leak(lambda: draw.text((0, 0), "some text "*1024, #~10k
|
self._test_leak(lambda: draw.text((0, 0), "some text "*1024, # ~10k
|
||||||
font=font, fill="black"))
|
font=font, fill="black"))
|
||||||
|
|
||||||
@unittest.skipIf(not features.check('freetype2'), "Test requires freetype2")
|
@unittest.skipIf(not features.check('freetype2'), "Test requires freetype2")
|
||||||
|
@ -25,7 +25,7 @@ class TestTTypeFontLeak(PillowLeakTestCase):
|
||||||
class TestDefaultFontLeak(TestTTypeFontLeak):
|
class TestDefaultFontLeak(TestTTypeFontLeak):
|
||||||
# fails at iteration 37 in master
|
# fails at iteration 37 in master
|
||||||
iterations = 100
|
iterations = 100
|
||||||
mem_limit = 1024 #k
|
mem_limit = 1024 # k
|
||||||
|
|
||||||
def test_leak(self):
|
def test_leak(self):
|
||||||
default_font = ImageFont.load_default()
|
default_font = ImageFont.load_default()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user