mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-29 19:36:19 +03:00
10 lines
211 B
Python
10 lines
211 B
Python
import pytest
|
|
from PIL import Image
|
|
|
|
|
|
def test_j2k_overflow(tmp_path):
|
|
im = Image.new("RGBA", (1024, 131584))
|
|
target = str(tmp_path / "temp.jpc")
|
|
with pytest.raises(IOError):
|
|
im.save(target)
|