Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests/test_briefcase.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import tomli as tomllib

import pytest
from PIL import Image

from constructor.briefcase import (
Payload,
Expand Down Expand Up @@ -1040,6 +1039,10 @@ def test_payload_pyproject_toml_installer_images(tmp_path, has_user_images):
info = mock_info.copy()

if has_user_images:
# Imported lazily: pillow is a Windows/macOS-only dependency (see recipe/meta.yaml),
# so a module-level import would break test collection on Linux (e.g. canary builds).
from PIL import Image

# Create a minimal test image. We avoid using files from examples/ because canary
# builds run tests in an isolated conda-build environment where only the directories
# listed in recipe/meta.yaml's source_files are available.
Expand Down
Loading