Skip to content

Commit

Permalink
Merge pull request #7979 from radarhere/lab
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Apr 26, 2024
2 parents c3ded3a + e932d9e commit a8f434f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Tests/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,13 @@ def _cached_hopper(mode: str) -> Image.Image:
with pytest.warns(DeprecationWarning):
im = im.convert(mode)
else:
im = im.convert(mode)
try:
im = im.convert(mode)
except ImportError:
if mode == "LAB":
im = Image.open("Tests/images/hopper.Lab.tif")
else:
raise
return im


Expand Down

0 comments on commit a8f434f

Please sign in to comment.