Add test for #647. Fails without fix.

This commit is contained in:
hugovk 2014-05-21 14:33:28 +03:00
parent aed2646dc2
commit 0c1c620e30

View File

@ -228,3 +228,11 @@ def test_quality_keep():
im = Image.open("Images/lena.jpg") im = Image.open("Images/lena.jpg")
f = tempfile('temp.jpg') f = tempfile('temp.jpg')
assert_no_exception(lambda: im.save(f, quality='keep')) assert_no_exception(lambda: im.save(f, quality='keep'))
def test_junk_jpeg_header():
# https://github.com/python-imaging/Pillow/issues/630
filename = "Tests/images/junk_jpeg_header.jpg"
assert_no_exception(lambda: Image.open(filename))
# End of file