mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +03:00
Test seek errors
This commit is contained in:
parent
f3f9190de7
commit
760bc7dd38
|
@ -164,3 +164,11 @@ class TestFileWebpAnimation(PillowTestCase):
|
|||
self.assertEqual(im.info["duration"], dur)
|
||||
self.assertEqual(im.info["timestamp"], ts)
|
||||
ts -= dur
|
||||
|
||||
def test_seek_errors(self):
|
||||
with Image.open("Tests/images/iss634.webp") as im:
|
||||
with self.assertRaises(EOFError):
|
||||
im.seek(-1)
|
||||
|
||||
with self.assertRaises(EOFError):
|
||||
im.seek(42)
|
||||
|
|
Loading…
Reference in New Issue
Block a user