mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Update test_file_gif.py
Changed to use a test image already in Images folder
This commit is contained in:
parent
416de882e4
commit
6257e788ad
|
@ -815,7 +815,7 @@ def test_zero_comment_subblocks():
|
|||
|
||||
def test_write_comment(tmp_path):
|
||||
out = str(tmp_path / "temp.gif")
|
||||
with Image.open("Tests/images/multiple_comments.gif") as im:
|
||||
with Image.open("Tests/images/dispose_prev.gif") as im:
|
||||
im.save(out, save_all=True, comment="Test")
|
||||
with Image.open(out) as reread:
|
||||
# Comments written should appear only in first frame
|
||||
|
@ -831,7 +831,7 @@ def test_write_comment(tmp_path):
|
|||
|
||||
def test_write_no_comment(tmp_path):
|
||||
out = str(tmp_path / "temp.gif")
|
||||
with Image.open("Tests/images/multiple_comments.gif") as im:
|
||||
with Image.open("Tests/images/dispose_prev.gif") as im:
|
||||
# Empty comment="" arg should suppress all comments
|
||||
im.save(out, save_all=True, comment="")
|
||||
with Image.open(out) as reread:
|
||||
|
|
Loading…
Reference in New Issue
Block a user