mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 21:24:31 +03:00
Fixes for test_cffi.py
This commit is contained in:
parent
3249d8f3a5
commit
2833cb42b4
|
@ -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 """
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user