From ca16cf2aacd5a84c7819dcdbba3cc6a46649b83d Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Tue, 13 Jul 2021 18:47:55 +1000 Subject: [PATCH] Added test --- Tests/test_file_apng.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tests/test_file_apng.py b/Tests/test_file_apng.py index 7fb6f59d4..15e007ca1 100644 --- a/Tests/test_file_apng.py +++ b/Tests/test_file_apng.py @@ -433,7 +433,9 @@ def test_apng_save_duration_loop(tmp_path): # test removal of duplicated frames frame = Image.new("RGBA", (128, 64), (255, 0, 0, 255)) - frame.save(test_file, save_all=True, append_images=[frame], duration=[500, 250]) + frame.save( + test_file, save_all=True, append_images=[frame, frame], duration=[500, 100, 150] + ) with Image.open(test_file) as im: im.load() assert im.n_frames == 1