From 1c8b763d53bd038f1b2d3ef9525c331d428136a4 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Mon, 7 Nov 2016 14:35:54 -0800 Subject: [PATCH] test_pageinfo: Remove bits per component test The behavior of this test will ultimately depend on what version of img2pdf is installed, since after my patch it will be able to produce 1bpp images. --- tests/test_pageinfo.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/test_pageinfo.py b/tests/test_pageinfo.py index efff7da7..d28fc1d2 100644 --- a/tests/test_pageinfo.py +++ b/tests/test_pageinfo.py @@ -97,11 +97,6 @@ def test_single_page_image(): assert pdfimage['width'] == 8 assert pdfimage['color'] == 'gray' - # While unexpected, this is correct - # PDF spec says /FlateDecode image must have /BitsPerComponent 8 - # So mono images get upgraded to 8-bit - assert pdfimage['bpc'] == 8 - # DPI in a 1"x1" is the image width assert abs(pdfimage['dpi_w'] - 8) < 1e-5 assert abs(pdfimage['dpi_h'] - 8) < 1e-5