Fixes for test_cffi.py

This commit is contained in:
hugovk 2014-06-05 14:19:29 +03:00
parent 3249d8f3a5
commit 2833cb42b4
2 changed files with 12 additions and 8 deletions

View File

@ -5,19 +5,23 @@ try:
from PIL import Image, PyAccess
import test_image_putpixel as put
import test_image_getpixel as get
from test_image_putpixel import TestImagePutPixel
from test_image_getpixel import TestImageGetPixel
class TestCffi(PillowTestCase):
Image.USE_CFFI_ACCESS = True
Image.USE_CFFI_ACCESS = True
class TestCffiPutPixel(TestImagePutPixel):
def test_put(self):
put.test_sanity()
self.test_sanity()
class TestCffiGetPixel(TestImageGetPixel):
def test_get(self):
get.test_basic()
get.test_signedness()
self.test_basic()
self.test_signedness()
class TestCffi(PillowTestCase):
def _test_get_access(self, im):
""" Do we get the same thing as the old pixel access """

View File

@ -5,7 +5,7 @@ from PIL import Image
Image.USE_CFFI_ACCESS = False
class TestImage(PillowTestCase):
class TestImageGetPixel(PillowTestCase):
def color(self, mode):
bands = Image.getmodebands(mode)