Skip to content

Skip PILImage tests on Qt5 #1274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 15, 2025
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
Skip PILImage tests on Qt5
  • Loading branch information
mdickinson committed May 15, 2025
commit 26f4e51fb9434bcd8a7ec2618da7009fde71dcbb
8 changes: 8 additions & 0 deletions pyface/tests/test_pil_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,15 @@
except ImportError:
from importlib_resources import as_file, files

from pyface.toolkit import toolkit
from pyface.util._optional_dependencies import optional_import

if toolkit.toolkit in {"qt", "qt4"}:
from pyface.qt import is_qt5
else:
is_qt5 = False


Image = None

with optional_import(
Expand All @@ -35,6 +42,7 @@


@unittest.skipIf(Image is None, "Pillow not available")
@unittest.skipIf(is_qt5, "PIL.ImageQt does not support Qt 5")
class TestPILImage(unittest.TestCase):

def test_create_image(self):
Expand Down
Loading