We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 347c3f9 commit fb07a25Copy full SHA for fb07a25
1 file changed
tests/functional/conftest.py
@@ -92,10 +92,12 @@ def valid_formatted_image(
92
tmp_path_factory: pytest.TempPathFactory,
93
) -> bytes:
94
image_format = request.param
95
- if (magick_path := shutil.which("magick")) is None:
+ # Try 'magick' first (ImageMagick 7.x), fall back to 'convert' (6.x)
96
+ if (magick_path := shutil.which("magick")) is None and (
97
+ magick_path := shutil.which("convert")
98
+ ) is None:
99
pytest.fail(
- "ImageMagick 'magick' command not found - cannot run "
- "multi-format test"
100
+ "ImageMagick command not found - cannot run multi-format test"
101
)
102
103
image_dir = tmp_path_factory.mktemp("images")
0 commit comments