Lint fixes

This commit is contained in:
Andrew Murray 2022-11-03 09:18:47 +11:00
parent 87d1770c18
commit f2b36a1833

View File

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