From 416de882e418d64ff3e058903cd4fafabcff0d52 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 14 May 2022 15:36:51 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- Tests/test_file_gif.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Tests/test_file_gif.py b/Tests/test_file_gif.py index 1bd772dc6..eee432116 100644 --- a/Tests/test_file_gif.py +++ b/Tests/test_file_gif.py @@ -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):