mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-14 01:04:45 +03:00
add support for "RGBa" to hopper() test helper
This commit is contained in:
parent
4c8bcea9d5
commit
7d91a873a7
|
@ -247,7 +247,9 @@ def hopper(mode=None, cache={}):
|
||||||
# (for fast, isolated, repeatable tests).
|
# (for fast, isolated, repeatable tests).
|
||||||
im = cache.get(mode)
|
im = cache.get(mode)
|
||||||
if im is None:
|
if im is None:
|
||||||
if mode == "La":
|
if mode == "RGBa":
|
||||||
|
im = hopper("RGBA").convert(mode)
|
||||||
|
elif mode == "La":
|
||||||
im = hopper("LA").convert(mode)
|
im = hopper("LA").convert(mode)
|
||||||
elif mode == "F":
|
elif mode == "F":
|
||||||
im = hopper("L").convert(mode)
|
im = hopper("L").convert(mode)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user