Skip to content

Commit

Permalink
Merge pull request #43 from radarhere/fix-im-long-name
Browse files Browse the repository at this point in the history
Rearranged code for Windows
  • Loading branch information
hugovk authored Feb 19, 2020
2 parents 946a038 + c516134 commit 56fd7b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Tests/test_file_im.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,16 @@ def test_eoferror():


def test_roundtrip(tmp_path):
for mode in ["RGB", "P", "PA"]:
def roundtrip(mode):
out = str(tmp_path / "temp.im")
im = hopper(mode)
im.save(out)
with Image.open(out) as reread:
assert_image_equal(reread, im)

for mode in ["RGB", "P", "PA"]:
roundtrip(mode)


def test_save_unsupported_mode(tmp_path):
out = str(tmp_path / "temp.im")
Expand Down

0 comments on commit 56fd7b3

Please sign in to comment.