Skip to content

Commit 7b3c459

Browse files
committed
Skip PILImage tests on Qt 5 (support was dropped in python-pillow/Pillow#8159)
1 parent 4b8193c commit 7b3c459

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyface/tests/test_pil_image.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
except ImportError:
2020
from importlib_resources import as_file, files
2121

22+
from pyface.qt import is_qt5
2223
from pyface.util._optional_dependencies import optional_import
2324

2425
Image = None
@@ -35,6 +36,7 @@
3536

3637

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

4042
def test_create_image(self):

0 commit comments

Comments
 (0)