From 41e124af0527f45b7a8b60d59d10c9199b7a9ae1 Mon Sep 17 00:00:00 2001 From: wiredfool Date: Tue, 4 Feb 2014 21:45:34 -0800 Subject: [PATCH] Skip CFFI test earlier if it's not installed --- Tests/test_cffi.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Tests/test_cffi.py b/Tests/test_cffi.py index 4065a9e53..1c0d8d31e 100644 --- a/Tests/test_cffi.py +++ b/Tests/test_cffi.py @@ -1,16 +1,15 @@ from tester import * -from PIL import Image, PyAccess - -import test_image_putpixel as put -import test_image_getpixel as get - - - try: import cffi except: skip() + +from PIL import Image, PyAccess + +import test_image_putpixel as put +import test_image_getpixel as get + Image.USE_CFFI_ACCESS = True