This commit is contained in:
hugovk 2017-02-19 12:04:18 +02:00 committed by wiredfool
parent e6864d16a8
commit c4b686f82d

View File

@ -5,7 +5,7 @@ from PIL import ImageQt, Image
if ImageQt.qt_is_installed:
from PIL.ImageQt import QImage, QPixmap
from PIL.ImageQt import QImage
try:
from PyQt5 import QtGui
@ -64,6 +64,8 @@ class TestToQImage(PillowQtTestCase, PillowTestCase):
app = QApplication([])
ex = Example()
assert(app) # Silence warning
assert(ex) # Silence warning
if ImageQt.qt_is_installed:
@ -72,7 +74,7 @@ if ImageQt.qt_is_installed:
def __init__(self):
super(Example, self).__init__()
img = hopper().resize((1000,1000))
img = hopper().resize((1000, 1000))
qimage = ImageQt.ImageQt(img)