mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-30 18:03:07 +03:00
Fixed unclosed file warning (#8847)
This commit is contained in:
parent
60b5131e9f
commit
81be8d5410
|
@ -230,10 +230,10 @@ class TestImage:
|
||||||
assert_image_similar(im, reloaded, 20)
|
assert_image_similar(im, reloaded, 20)
|
||||||
|
|
||||||
def test_unknown_extension(self, tmp_path: Path) -> None:
|
def test_unknown_extension(self, tmp_path: Path) -> None:
|
||||||
im = hopper()
|
|
||||||
temp_file = tmp_path / "temp.unknown"
|
temp_file = tmp_path / "temp.unknown"
|
||||||
with pytest.raises(ValueError):
|
with hopper() as im:
|
||||||
im.save(temp_file)
|
with pytest.raises(ValueError):
|
||||||
|
im.save(temp_file)
|
||||||
|
|
||||||
def test_internals(self) -> None:
|
def test_internals(self) -> None:
|
||||||
im = Image.new("L", (100, 100))
|
im = Image.new("L", (100, 100))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user