diff options
author | jaseg <git@jaseg.de> | 2022-06-11 22:57:09 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2022-06-11 22:57:09 +0200 |
commit | 952ddf4a2038f46c73f5b8e27e8eea95351a6bb5 (patch) | |
tree | 4f985c49b694d377729a8ee6cee669ef74f509b8 | |
parent | 527fbca7f51389a28ab20d5949f7190113f25832 (diff) | |
download | gerbolyze-952ddf4a2038f46c73f5b8e27e8eea95351a6bb5.tar.gz gerbolyze-952ddf4a2038f46c73f5b8e27e8eea95351a6bb5.tar.bz2 gerbolyze-952ddf4a2038f46c73f5b8e27e8eea95351a6bb5.zip |
tests: remove use of deprecated Pillow API
-rw-r--r-- | svg-flatten/src/test/svg_tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
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: |