From c75ff4687a545f8e6a3d24eae085fddc1ed5b358 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Mon, 15 Nov 2021 16:36:24 -0800 Subject: [PATCH] Turning on Ghostscript interpolation changes this test Seems acceptable. We don't normally use Ghostscript to downsample PDFs like is happening in this test. --- tests/test_optimize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_optimize.py b/tests/test_optimize.py index 3c5b3b38..76b45eb9 100644 --- a/tests/test_optimize.py +++ b/tests/test_optimize.py @@ -51,7 +51,7 @@ def test_mono_not_inverted(resources, outdir): ) with Image.open(fspath(outdir / 'im.png')) as im: - assert im.getpixel((0, 0)) == 255, "Expected white background" + assert im.getpixel((0, 0)) > 240, "Expected white background" @needs_pngquant