We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60b5131 commit 81be8d5Copy full SHA for 81be8d5
1 file changed
Tests/test_image.py
@@ -230,10 +230,10 @@ def test_tempfile(self) -> None:
230
assert_image_similar(im, reloaded, 20)
231
232
def test_unknown_extension(self, tmp_path: Path) -> None:
233
- im = hopper()
234
temp_file = tmp_path / "temp.unknown"
235
- with pytest.raises(ValueError):
236
- im.save(temp_file)
+ with hopper() as im:
+ with pytest.raises(ValueError):
+ im.save(temp_file)
237
238
def test_internals(self) -> None:
239
im = Image.new("L", (100, 100))
0 commit comments