mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Added test
This commit is contained in:
parent
feb3103bfd
commit
300f1ffc02
|
@ -73,6 +73,13 @@ def test_write(tmp_path):
|
||||||
img.save(out, format="sgi")
|
img.save(out, format="sgi")
|
||||||
assert_image_equal_tofile(img, out)
|
assert_image_equal_tofile(img, out)
|
||||||
|
|
||||||
|
out = str(tmp_path / "fp.sgi")
|
||||||
|
with open(out, "wb") as fp:
|
||||||
|
img.save(fp)
|
||||||
|
assert_image_equal_tofile(img, out)
|
||||||
|
|
||||||
|
assert not fp.closed
|
||||||
|
|
||||||
for mode in ("L", "RGB", "RGBA"):
|
for mode in ("L", "RGB", "RGBA"):
|
||||||
roundtrip(hopper(mode))
|
roundtrip(hopper(mode))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user