diff --git a/Tests/helper.py b/Tests/helper.py index 9849bf655..a7691f645 100644 --- a/Tests/helper.py +++ b/Tests/helper.py @@ -261,7 +261,11 @@ def hopper(mode: str | None = None, cache: dict[str, Image.Image] = {}) -> Image # (for fast, isolated, repeatable tests). im = cache.get(mode) if im is None: - if mode == "F": + if mode == "RGBa": + im = hopper("RGBA").convert(mode) + elif mode == "La": + im = hopper("LA").convert(mode) + elif mode == "F": im = hopper("L").convert(mode) elif mode[:4] == "I;16": im = hopper("I").convert(mode)