mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 02:36:17 +03:00
Ensuring c-api access
This commit is contained in:
parent
273a5014d2
commit
c98f731f7e
|
@ -2,6 +2,8 @@ from tester import *
|
||||||
|
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
|
Image.USE_CFFI_ACCESS=False
|
||||||
|
|
||||||
def color(mode):
|
def color(mode):
|
||||||
bands = Image.getmodebands(mode)
|
bands = Image.getmodebands(mode)
|
||||||
if bands == 1:
|
if bands == 1:
|
||||||
|
|
|
@ -2,6 +2,8 @@ from tester import *
|
||||||
|
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
|
Image.USE_CFFI_ACCESS=False
|
||||||
|
|
||||||
def test_sanity():
|
def test_sanity():
|
||||||
|
|
||||||
im1 = lena()
|
im1 = lena()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user