From 1c2b2b085a7bb50564e5d7ae64939bffe781574f Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 1 Apr 2020 22:32:14 +0300 Subject: [PATCH] Add test case --- Tests/test_file_png.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tests/test_file_png.py b/Tests/test_file_png.py index b6da36530..d095c26a1 100644 --- a/Tests/test_file_png.py +++ b/Tests/test_file_png.py @@ -629,6 +629,10 @@ class TestFilePng: with Image.open(test_file) as reloaded: assert reloaded.info["exif"] == b"Exif\x00\x00exifstring" + def test_seek(self, tmp_path): + with Image.open(TEST_PNG_FILE) as im: + im.seek(0) + @pytest.mark.skipif(is_win32(), reason="Requires Unix or macOS") @skip_unless_feature("zlib")