From c4b686f82db06bdcb335a1649b7aaac5bfef7724 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 f7580aed1..435a07765 100644 --- a/Tests/test_image_toqimage.py +++ b/Tests/test_image_toqimage.py @@ -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)