Add monochrome PDF test

This commit is contained in:
hugovk 2014-05-11 17:35:49 +03:00
parent 8f1a00ae92
commit 6520004289

View File

@ -15,6 +15,14 @@ def helper_save_as_pdf(mode):
assert_greater(os.path.getsize(outfile), 0)
def test_monochrome():
# Arrange
mode = "1"
# Act / Assert
helper_save_as_pdf(mode)
def test_greyscale():
# Arrange
mode = "L"
@ -33,9 +41,11 @@ def test_rgb():
# FIXME: P-mode test fails on Python 3.
# https://travis-ci.org/hugovk/Pillow/builds/24915249
# File "/home/travis/build/hugovk/Pillow/PIL/PdfImagePlugin.py", line 108, in _save
# File "/home/travis/build/hugovk/Pillow/PIL/PdfImagePlugin.py", line 108,
# in _save
# colorspace = colorspace + b"> ]"
# TypeError: Can't convert 'bytes' object to str implicitly
# def test_p_mode():
# # Arrange
# mode = "P"