Added check to test_comment as well

This commit is contained in:
Andrew Murray 2022-05-19 20:59:32 +10:00
parent 98329354e0
commit 138bd280e4

View File

@ -794,6 +794,9 @@ def test_comment(tmp_path):
with Image.open(out) as reread:
assert reread.info["comment"] == im.info["comment"].encode()
# Test that GIF89a is used for comments
assert reread.info["version"] == b"GIF89a"
def test_comment_over_255(tmp_path):
out = str(tmp_path / "temp.gif")
@ -805,7 +808,8 @@ def test_comment_over_255(tmp_path):
im.save(out)
with Image.open(out) as reread:
assert reread.info["comment"] == comment
# Test that GIF89a is used for long comment
# Test that GIF89a is used for comments
assert reread.info["version"] == b"GIF89a"