Skip to content

Commit a06bcae

Browse files
committed
test 1.eps size and data
1 parent eb4d0e6 commit a06bcae

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Tests/images/eps/1.bmp

1.17 KB
Binary file not shown.

Tests/test_file_eps.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from PIL import EpsImagePlugin, Image, UnidentifiedImageError, features
99

1010
from .helper import (
11+
assert_image_equal_tofile,
1112
assert_image_similar,
1213
assert_image_similar_tofile,
1314
hopper,
@@ -247,9 +248,9 @@ def test_bytesio_object() -> None:
247248
assert_image_similar(img, image1_scale1_compare, 5)
248249

249250

250-
def test_1_mode() -> None:
251+
def test_1() -> None:
251252
with Image.open("Tests/images/eps/1.eps") as im:
252-
assert im.mode == "1"
253+
assert_image_equal_tofile(im, "Tests/images/eps/1.bmp")
253254

254255

255256
def test_image_mode_not_supported(tmp_path: Path) -> None:

0 commit comments

Comments
 (0)