mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-03 12:43:05 +03:00
Reuse temp path
This commit is contained in:
parent
8d440f734b
commit
8d55054877
|
@ -672,7 +672,7 @@ class TestFilePng:
|
||||||
im.putpalette((1, 1, 1))
|
im.putpalette((1, 1, 1))
|
||||||
|
|
||||||
out = tmp_path / "temp.png"
|
out = tmp_path / "temp.png"
|
||||||
im.save(tmp_path / "temp.png")
|
im.save(out)
|
||||||
|
|
||||||
with Image.open(out) as reloaded:
|
with Image.open(out) as reloaded:
|
||||||
assert len(reloaded.png.im_palette[1]) == 3
|
assert len(reloaded.png.im_palette[1]) == 3
|
||||||
|
|
Loading…
Reference in New Issue
Block a user