add support for "La" to hopper() test helper

This commit is contained in:
Yay295 2022-12-16 07:59:50 -06:00 committed by GitHub
parent 5fd014a106
commit 18a81dc11d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -247,7 +247,9 @@ def hopper(mode=None, cache={}):
# (for fast, isolated, repeatable tests).
im = cache.get(mode)
if im is None:
if mode == "F":
if 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)