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 0a40994 commit 98925f5Copy full SHA for 98925f5
pyface/tests/test_pil_image.py
@@ -19,8 +19,15 @@
19
except ImportError:
20
from importlib_resources import as_file, files
21
22
+from pyface.toolkit import toolkit
23
from pyface.util._optional_dependencies import optional_import
24
25
+if toolkit.toolkit in {"qt", "qt4"}:
26
+ from pyface.qt import is_qt5
27
+else:
28
+ is_qt5 = False
29
+
30
31
Image = None
32
33
with optional_import(
@@ -35,6 +42,7 @@
35
42
36
43
37
44
@unittest.skipIf(Image is None, "Pillow not available")
45
+@unittest.skipIf(is_qt5, "PIL.ImageQt does not support Qt 5")
38
46
class TestPILImage(unittest.TestCase):
39
47
40
48
def test_create_image(self):
0 commit comments