From 952ddf4a2038f46c73f5b8e27e8eea95351a6bb5 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sat, 11 Jun 2022 22:57:09 +0200 Subject: tests: remove use of deprecated Pillow API --- svg-flatten/src/test/svg_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'svg-flatten') diff --git a/svg-flatten/src/test/svg_tests.py b/svg-flatten/src/test/svg_tests.py index e417c19..d91bc0d 100644 --- a/svg-flatten/src/test/svg_tests.py +++ b/svg-flatten/src/test/svg_tests.py @@ -93,8 +93,8 @@ class SVGRoundTripTests(unittest.TestCase): if vectorizer_test: target_size = (100, 100) - ref.thumbnail(target_size, Image.ANTIALIAS) - out.thumbnail(target_size, Image.ANTIALIAS) + ref.thumbnail(target_size, Image.Resampling.LANCZOS) + out.thumbnail(target_size, Image.Resampling.LANCZOS) ref, out = np.array(ref), np.array(out) else: -- cgit