From 2e6adc57934dcdff95887b377be621476120b789 Mon Sep 17 00:00:00 2001 From: Peter Rowlands Date: Fri, 3 Apr 2020 20:51:29 +0900 Subject: [PATCH] non-animated png sanity tests --- Tests/test_file_png.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tests/test_file_png.py b/Tests/test_file_png.py index 3c5286ad0..d1fdd6532 100644 --- a/Tests/test_file_png.py +++ b/Tests/test_file_png.py @@ -85,6 +85,8 @@ class TestFilePng: assert im.size == (128, 128) assert im.format == "PNG" assert im.get_format_mimetype() == "image/png" + assert im.n_frames == 1 + assert not im.is_animated for mode in ["1", "L", "P", "RGB", "I", "I;16"]: im = hopper(mode) @@ -635,7 +637,6 @@ class TestFilePng: def test_seek(self): with Image.open(TEST_PNG_FILE) as im: - assert im.n_frames == 1 im.seek(0) with pytest.raises(EOFError): im.seek(1)