mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-07 13:25:24 +03:00
Restored deleted test
This commit is contained in:
parent
c644bf9455
commit
40b659764d
|
@ -1,4 +1,4 @@
|
||||||
from helper import unittest, PillowTestCase
|
from helper import unittest, PillowTestCase, hopper
|
||||||
|
|
||||||
from PIL import ImageQt
|
from PIL import ImageQt
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ if ImageQt.qt_is_installed:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
def skip_if_qt_is_not_installed(test_case):
|
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):
|
class PillowQtTestCase(object):
|
||||||
|
@ -71,6 +71,10 @@ class TestImageQt(PillowQtTestCase, PillowTestCase):
|
||||||
checkrgb(0, 255, 0)
|
checkrgb(0, 255, 0)
|
||||||
checkrgb(0, 0, 255)
|
checkrgb(0, 0, 255)
|
||||||
|
|
||||||
|
def test_image(self):
|
||||||
|
for mode in ('1', 'RGB', 'RGBA', 'L', 'P'):
|
||||||
|
ImageQt.ImageQt(hopper(mode))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user