This commit is contained in:
hugovk 2017-02-19 12:04:18 +02:00
parent 941526a831
commit b6e143bd1f

View File

@ -5,7 +5,7 @@ from PIL import ImageQt
if ImageQt.qt_is_installed: if ImageQt.qt_is_installed:
from PIL.ImageQt import QImage, QPixmap from PIL.ImageQt import QImage
try: try:
from PyQt5 import QtGui from PyQt5 import QtGui
@ -35,6 +35,8 @@ class TestToQImage(PillowQtTestCase, PillowTestCase):
app = QtGui.QApplication([]) app = QtGui.QApplication([])
ex = Example() ex = Example()
assert(app) # Silence warning
assert(ex) # Silence warning
if ImageQt.qt_is_installed: if ImageQt.qt_is_installed: