mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 13:14:27 +03:00
Added test
This commit is contained in:
parent
45b228e835
commit
0af193afc0
|
@ -244,3 +244,8 @@ class TestPyDecoder:
|
||||||
im = MockImageFile(buf)
|
im = MockImageFile(buf)
|
||||||
assert im.format is None
|
assert im.format is None
|
||||||
assert im.get_format_mimetype() is None
|
assert im.get_format_mimetype() is None
|
||||||
|
|
||||||
|
def test_oserror(self):
|
||||||
|
im = Image.new("RGB", (1, 1))
|
||||||
|
with pytest.raises(OSError):
|
||||||
|
im.save(BytesIO(), "JPEG2000")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user