Skip to content

Commit

Permalink
Added check to test_comment as well
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed May 19, 2022
1 parent 9832935 commit 138bd28
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Tests/test_file_gif.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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"


Expand Down

0 comments on commit 138bd28

Please sign in to comment.