From b6e143bd1fa66f54c479eb4e7c25f81f1bd4caa9 Mon Sep 17 00:00:00 2001 From: hugovk Date: Sun, 19 Feb 2017 12:04:18 +0200 Subject: [PATCH] flake8 --- Tests/test_image_toqimage.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Tests/test_image_toqimage.py b/Tests/test_image_toqimage.py index a4a03409a..39e68ebbb 100644 --- a/Tests/test_image_toqimage.py +++ b/Tests/test_image_toqimage.py @@ -5,7 +5,7 @@ from PIL import ImageQt if ImageQt.qt_is_installed: - from PIL.ImageQt import QImage, QPixmap + from PIL.ImageQt import QImage try: from PyQt5 import QtGui @@ -35,6 +35,8 @@ class TestToQImage(PillowQtTestCase, PillowTestCase): app = QtGui.QApplication([]) ex = Example() + assert(app) # Silence warning + assert(ex) # Silence warning if ImageQt.qt_is_installed: @@ -43,7 +45,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)