mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-25 00:34:14 +03:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
22d9095e5c
commit
416de882e4
|
@ -821,8 +821,12 @@ def test_write_comment(tmp_path):
|
|||
# Comments written should appear only in first frame
|
||||
assert reread.info["comment"] == b"Test"
|
||||
for i, frame in enumerate(ImageSequence.Iterator(reread)):
|
||||
assert (i == 0 and frame.info["comment"] == b"Test" or
|
||||
i != 0 and "comment" not in frame.info)
|
||||
assert (
|
||||
i == 0
|
||||
and frame.info["comment"] == b"Test"
|
||||
or i != 0
|
||||
and "comment" not in frame.info
|
||||
)
|
||||
|
||||
|
||||
def test_write_no_comment(tmp_path):
|
||||
|
|
Loading…
Reference in New Issue
Block a user