mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-09-10 06:12:27 +03:00
Removed unused code
This commit is contained in:
parent
31eee6e5f7
commit
0e22b0ca6c
|
@ -2,7 +2,7 @@ from __future__ import annotations
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from PIL import Image, ImageDraw, ImageFont
|
from PIL import ImageFont
|
||||||
|
|
||||||
from .helper import skip_unless_feature
|
from .helper import skip_unless_feature
|
||||||
|
|
||||||
|
@ -12,10 +12,6 @@ class TestFontCrash:
|
||||||
# from fuzzers.fuzz_font
|
# from fuzzers.fuzz_font
|
||||||
font.getbbox("ABC")
|
font.getbbox("ABC")
|
||||||
font.getmask("test text")
|
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")
|
@skip_unless_feature("freetype2")
|
||||||
def test_segfault(self) -> None:
|
def test_segfault(self) -> None:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user