mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Skip ImageFont_bitmap test if _imagingft C module is not installed
This commit is contained in:
parent
8c3f66a9ae
commit
5309c8e21e
|
@ -2,6 +2,14 @@ from helper import unittest, PillowTestCase
|
|||
from PIL import Image, ImageFont, ImageDraw
|
||||
|
||||
|
||||
image_font_installed = True
|
||||
try:
|
||||
ImageFont.core.getfont
|
||||
except ImportError:
|
||||
image_font_installed = False
|
||||
|
||||
|
||||
@unittest.skipIf(not image_font_installed, "image font not installed")
|
||||
class TestImageFontBitmap(PillowTestCase):
|
||||
def test_similar(self):
|
||||
text = 'EmbeddedBitmap'
|
||||
|
|
Loading…
Reference in New Issue
Block a user