mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-25 00:34:14 +03:00
Added check to test_comment as well
This commit is contained in:
parent
98329354e0
commit
138bd280e4
|
@ -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"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user