[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2022-05-14 15:36:51 +00:00
parent 22d9095e5c
commit 416de882e4

View File

@ -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):