mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 10:26:19 +03:00
Merge pull request #5325 from radarhere/unclosed_file
Fixed unclosed file warning
This commit is contained in:
commit
982837ec85
|
@ -143,8 +143,8 @@ def test_not_an_icns_file():
|
||||||
|
|
||||||
|
|
||||||
def test_icns_decompression_bomb():
|
def test_icns_decompression_bomb():
|
||||||
with pytest.raises(Image.DecompressionBombError):
|
with Image.open(
|
||||||
im = Image.open(
|
|
||||||
"Tests/images/oom-8ed3316a4109213ca96fb8a256a0bfefdece1461.icns"
|
"Tests/images/oom-8ed3316a4109213ca96fb8a256a0bfefdece1461.icns"
|
||||||
)
|
) as im:
|
||||||
|
with pytest.raises(Image.DecompressionBombError):
|
||||||
im.load()
|
im.load()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user