mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 16:22:22 +03:00
Lint fixes
This commit is contained in:
parent
87d1770c18
commit
f2b36a1833
|
@ -4,6 +4,7 @@ import pytest
|
||||||
|
|
||||||
from .helper import skip_unless_feature
|
from .helper import skip_unless_feature
|
||||||
|
|
||||||
|
|
||||||
class TestFontCrash:
|
class TestFontCrash:
|
||||||
def _fuzz_font(self, font):
|
def _fuzz_font(self, font):
|
||||||
# from fuzzers.fuzz_font
|
# from fuzzers.fuzz_font
|
||||||
|
@ -17,5 +18,5 @@ class TestFontCrash:
|
||||||
@skip_unless_feature("freetype2")
|
@skip_unless_feature("freetype2")
|
||||||
def test_segfault(self):
|
def test_segfault(self):
|
||||||
with pytest.raises(OSError):
|
with pytest.raises(OSError):
|
||||||
font= ImageFont.truetype('Tests/fonts/fuzz_font-5203009437302784')
|
font = ImageFont.truetype("Tests/fonts/fuzz_font-5203009437302784")
|
||||||
self._fuzz_font(font)
|
self._fuzz_font(font)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user