mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
successful roundtrip test
This commit is contained in:
parent
ac25dab915
commit
b4aa0429aa
|
@ -27,3 +27,12 @@ def test_optimize():
|
|||
return len(file.getvalue())
|
||||
assert_equal(test(0), 800)
|
||||
assert_equal(test(1), 38)
|
||||
|
||||
def test_roundtrip():
|
||||
out = tempfile('temp.gif')
|
||||
im = lena()
|
||||
im.save(out)
|
||||
reread = Image.open(out)
|
||||
|
||||
assert_image_similar(reread.convert('RGB'), im, 50)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user