From e9b54494c2ad51a3699e32e54956ee9ae7438b3a Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Thu, 8 Oct 2026 08:34:55 +1100 Subject: [PATCH] Install palette in core image before using directly --- Tests/benchmarks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Tests/benchmarks.py b/Tests/benchmarks.py index b3fd210e991..b56892657af 100644 --- a/Tests/benchmarks.py +++ b/Tests/benchmarks.py @@ -1014,6 +1014,7 @@ def test_quantize_to_palette( if output_mode == "P": result = bench(im.quantize, palette=palette, dither=dither) else: + palette.load() result = bench(lambda: im._new(im.im.convert(output_mode, dither, palette.im))) assert result.mode == output_mode benchmark_save(result)