mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-04-25 11:33:42 +03:00
flake8
This commit is contained in:
parent
e6864d16a8
commit
c4b686f82d
|
@ -5,7 +5,7 @@ from PIL import ImageQt, Image
|
||||||
|
|
||||||
|
|
||||||
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
|
||||||
|
@ -64,6 +64,8 @@ class TestToQImage(PillowQtTestCase, PillowTestCase):
|
||||||
|
|
||||||
app = QApplication([])
|
app = QApplication([])
|
||||||
ex = Example()
|
ex = Example()
|
||||||
|
assert(app) # Silence warning
|
||||||
|
assert(ex) # Silence warning
|
||||||
|
|
||||||
|
|
||||||
if ImageQt.qt_is_installed:
|
if ImageQt.qt_is_installed:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user