mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-11 17:56:18 +03:00
Added test and testfile for issue #302
This commit is contained in:
parent
91db774995
commit
a712cec02b
BIN
Tests/images/binary_preview_map.eps
Executable file
BIN
Tests/images/binary_preview_map.eps
Executable file
Binary file not shown.
|
@ -17,6 +17,8 @@ file1_compare_scale2 = "Tests/images/zero_bb_scale2.png"
|
|||
file2_compare = "Tests/images/non_zero_bb.png"
|
||||
file2_compare_scale2 = "Tests/images/non_zero_bb_scale2.png"
|
||||
|
||||
# EPS test files with binary preview
|
||||
file3 = "Tests/images/binary_preview_map.eps"
|
||||
|
||||
def test_sanity():
|
||||
# Regular scale
|
||||
|
@ -132,4 +134,9 @@ def test_thumbnail():
|
|||
assert_equal(max(image1.size), max(new_size))
|
||||
assert_equal(max(image2.size), max(new_size))
|
||||
|
||||
def test_read_binary_preview():
|
||||
# Issue 302
|
||||
# open image with binary preview
|
||||
image1 = Image.open(file3)
|
||||
|
||||
# End of file
|
||||
|
|
Loading…
Reference in New Issue
Block a user