mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +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.
23 lines
381 B
Python
23 lines
381 B
Python
from tester import *
|
|
|
|
from PIL import Image
|
|
from PIL import ImageSequence
|
|
|
|
def test_sanity():
|
|
|
|
file = tempfile("temp.im")
|
|
|
|
im = lena("RGB")
|
|
im.save(file)
|
|
|
|
seq = ImageSequence.Iterator(im)
|
|
|
|
index = 0
|
|
for frame in seq:
|
|
assert_image_equal(im, frame)
|
|
assert_equal(im.tell(), index)
|
|
index = index + 1
|
|
|
|
assert_equal(index, 1)
|
|
|