Skip CFFI test earlier if it's not installed

This commit is contained in:
wiredfool 2014-02-04 21:45:34 -08:00
parent cb309c9f59
commit 41e124af05

View File

@ -1,17 +1,16 @@
from tester import *
try:
import cffi
except:
skip()
from PIL import Image, PyAccess
import test_image_putpixel as put
import test_image_getpixel as get
try:
import cffi
except:
skip()
Image.USE_CFFI_ACCESS = True
def test_put():