From 40b659764df36c432002309aa1bea5829d22e697 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 19 Jun 2015 18:23:17 +1000 Subject: [PATCH] Restored deleted test --- Tests/test_imageqt.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Tests/test_imageqt.py b/Tests/test_imageqt.py index b17d27e71..3c977ff21 100644 --- a/Tests/test_imageqt.py +++ b/Tests/test_imageqt.py @@ -1,4 +1,4 @@ -from helper import unittest, PillowTestCase +from helper import unittest, PillowTestCase, hopper from PIL import ImageQt @@ -10,7 +10,7 @@ if ImageQt.qt_is_installed: pass else: def skip_if_qt_is_not_installed(test_case): - test_case.skipTest('PyQt4, PyQt5, or PySide is not installed') + test_case.skipTest('Qt bindings are not installed') class PillowQtTestCase(object): @@ -71,6 +71,10 @@ class TestImageQt(PillowQtTestCase, PillowTestCase): checkrgb(0, 255, 0) checkrgb(0, 0, 255) + def test_image(self): + for mode in ('1', 'RGB', 'RGBA', 'L', 'P'): + ImageQt.ImageQt(hopper(mode)) + if __name__ == '__main__': unittest.main()