mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
Add monochrome PDF test
This commit is contained in:
parent
8f1a00ae92
commit
6520004289
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user