src/tests/__init__.py: don't test for color space now that we support palette PNGs

This commit is contained in:
Johannes 'josch' Schauer 2018-07-18 00:04:30 +02:00
parent ac9ba1d0f6
commit b99fae1380
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -557,11 +557,6 @@ def test_suite():
imgprops.Filter, [PdfName.DCTDecode, PdfName.JPXDecode, imgprops.Filter, [PdfName.DCTDecode, PdfName.JPXDecode,
PdfName.FlateDecode, PdfName.FlateDecode,
PdfName.CCITTFaxDecode]) PdfName.CCITTFaxDecode])
# test if the colorspace is valid
self.assertIn(
imgprops.ColorSpace, [PdfName.DeviceGray,
PdfName.DeviceRGB,
PdfName.DeviceCMYK])
# test if the image has correct size # test if the image has correct size
self.assertEqual(imgprops.Width, str(orig_img.size[0])) self.assertEqual(imgprops.Width, str(orig_img.size[0]))