mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Merge pull request #1409 from uploadcare/fix-imagingft-not-installed
Skip ImageFont_bitmap test if _imagingft C module is not installed
This commit is contained in:
commit
a7d4d1e7a5
|
@ -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