Skip to content

Commit

Permalink
Added test and testfile for issue python-pillow#302
Browse files Browse the repository at this point in the history
  • Loading branch information
eliempje committed May 14, 2014
1 parent 91db774 commit a712cec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Binary file added Tests/images/binary_preview_map.eps
Binary file not shown.
7 changes: 7 additions & 0 deletions Tests/test_file_eps.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
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
Expand Down Expand Up @@ -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

0 comments on commit a712cec

Please sign in to comment.