Skip to content

Commit a908c62

Browse files
committed
Skip test_1 for Ghostscript 10.06.0
1 parent 53800d4 commit a908c62

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Tests/test_file_eps.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

33
import io
4+
import subprocess
45
from pathlib import Path
56

67
import pytest
@@ -281,6 +282,11 @@ def test_bytesio_object() -> None:
281282
),
282283
)
283284
def test_1(filename: str) -> None:
285+
gs_binary = EpsImagePlugin.gs_binary
286+
assert isinstance(gs_binary, str)
287+
if subprocess.check_output([gs_binary, "--version"]) == b"10.06.0\n":
288+
pytest.skip("Fails with Ghostscript 10.06.0")
289+
284290
with Image.open(filename) as im:
285291
assert_image_equal_tofile(im, "Tests/images/eps/1.bmp")
286292

0 commit comments

Comments
 (0)