mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 18:36:17 +03:00
ad784eb808
This is Christoph Gohlke's test suite from his personal PIL package found at http://www.lfd.uci.edu/~gohlke/pythonlibs/. This is just to bring it in as a separate commit. Future commits will align it with Pillow.
19 lines
661 B
Python
19 lines
661 B
Python
from tester import *
|
|
|
|
from PIL import Image
|
|
from PIL import ImageTransform
|
|
|
|
im = Image.new("L", (100, 100))
|
|
|
|
seq = tuple(range(10))
|
|
|
|
def test_sanity():
|
|
transform = ImageTransform.AffineTransform(seq[:6])
|
|
assert_no_exception(lambda: im.transform((100, 100), transform))
|
|
transform = ImageTransform.ExtentTransform(seq[:4])
|
|
assert_no_exception(lambda: im.transform((100, 100), transform))
|
|
transform = ImageTransform.QuadTransform(seq[:8])
|
|
assert_no_exception(lambda: im.transform((100, 100), transform))
|
|
transform = ImageTransform.MeshTransform([(seq[:4], seq[:8])])
|
|
assert_no_exception(lambda: im.transform((100, 100), transform))
|