Reuse temp path

This commit is contained in:
Andrew Murray 2025-03-21 20:41:15 +11:00
parent 8d440f734b
commit 8d55054877

View File

@ -672,7 +672,7 @@ class TestFilePng:
im.putpalette((1, 1, 1))
out = tmp_path / "temp.png"
im.save(tmp_path / "temp.png")
im.save(out)
with Image.open(out) as reloaded:
assert len(reloaded.png.im_palette[1]) == 3