mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-25 05:01:26 +03:00 
			
		
		
		
	find * -type f "-(" -name "*.bdf" -o -name "*.c" -o -name "*.h" -o -name "*.py" -o -name "*.rst" -o -name "*.txt" "-)" -exec sed -e "s/[[:space:]]*$//" -i {} \;
		
	
			
		
			
				
	
	
		
			23 lines
		
	
	
		
			373 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			373 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)
 | |
| 
 |