Skip to content

Commit 444e32f

Browse files
committed
Allow constant removed in Pillow 10.0.0 to be absent
1 parent ab29b93 commit 444e32f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testsuite/cases/pillow.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
from .base import BaseTestCase, root
66

77

8-
Image.LANCZOS = Image.ANTIALIAS
8+
if hasattr(Image, "ANTIALIAS"):
9+
Image.LANCZOS = Image.ANTIALIAS
910

1011

1112
class PillowTestCase(BaseTestCase):

0 commit comments

Comments
 (0)