Assert that seeking too far raises an EOFError

This commit is contained in:
Andrew Murray 2020-04-05 15:29:13 +10:00 committed by Hugo
parent 92adfaad2b
commit ab1835df5c

View File

@ -637,6 +637,9 @@ class TestFilePng:
with Image.open(TEST_PNG_FILE) as im:
im.seek(0)
with pytest.raises(EOFError):
im.seek(1)
@pytest.mark.skipif(is_win32(), reason="Requires Unix or macOS")
@skip_unless_feature("zlib")