Removed unused code (#9182)

This commit is contained in:
Hugo van Kemenade 2025-09-03 13:50:27 +03:00 committed by GitHub
commit 208e9b52dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,7 +2,7 @@ from __future__ import annotations
import pytest
from PIL import Image, ImageDraw, ImageFont
from PIL import ImageFont
from .helper import skip_unless_feature
@ -12,10 +12,6 @@ class TestFontCrash:
# from fuzzers.fuzz_font
font.getbbox("ABC")
font.getmask("test text")
with Image.new(mode="RGBA", size=(200, 200)) as im:
draw = ImageDraw.Draw(im)
draw.multiline_textbbox((10, 10), "ABC\nAaaa", font, stroke_width=2)
draw.text((10, 10), "Test Text", font=font, fill="#000")
@skip_unless_feature("freetype2")
def test_segfault(self) -> None: