test_font_pcf: skip if zlib is not available.

This commit is contained in:
Michał Górny 2013-04-21 10:30:59 +02:00
parent a5a5c854b8
commit a83530f475

View File

@ -3,6 +3,11 @@ from tester import *
from PIL import Image, FontFile, PcfFontFile
from PIL import ImageFont, ImageDraw
codecs = dir(Image.core)
if "zip_encoder" not in codecs or "zip_decoder" not in codecs:
skip("zlib support not available")
fontname = "Tests/fonts/helvO18.pcf"
tempname = tempfile("temp.pil", "temp.pbm")