mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 09:44:31 +03:00
Merge pull request #43 from radarhere/fix-im-long-name
Rearranged code for Windows
This commit is contained in:
commit
56fd7b3d41
|
@ -72,13 +72,16 @@ def test_eoferror():
|
||||||
|
|
||||||
|
|
||||||
def test_roundtrip(tmp_path):
|
def test_roundtrip(tmp_path):
|
||||||
for mode in ["RGB", "P", "PA"]:
|
def roundtrip(mode):
|
||||||
out = str(tmp_path / "temp.im")
|
out = str(tmp_path / "temp.im")
|
||||||
im = hopper(mode)
|
im = hopper(mode)
|
||||||
im.save(out)
|
im.save(out)
|
||||||
with Image.open(out) as reread:
|
with Image.open(out) as reread:
|
||||||
assert_image_equal(reread, im)
|
assert_image_equal(reread, im)
|
||||||
|
|
||||||
|
for mode in ["RGB", "P", "PA"]:
|
||||||
|
roundtrip(mode)
|
||||||
|
|
||||||
|
|
||||||
def test_save_unsupported_mode(tmp_path):
|
def test_save_unsupported_mode(tmp_path):
|
||||||
out = str(tmp_path / "temp.im")
|
out = str(tmp_path / "temp.im")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user