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:
wiredfool 2015-09-09 16:45:59 +01:00
commit a7d4d1e7a5

View File

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