Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions kiva/tests/test_qpainter_drawing.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,7 @@
import unittest

try:
from pyface.qt import QtGui
except ImportError:
QT_NOT_AVAILABLE = True
else:
QT_NOT_AVAILABLE = False
try:
from pyface.qt import is_qt5
from pyface.qt import is_qt5, QtGui
except ImportError:
is_qt5 = False

Expand All @@ -26,7 +20,7 @@
is_linux = sys.platform.startswith("linux")


@unittest.skipIf(QT_NOT_AVAILABLE, "Cannot import qt")
@unittest.skipIf(not is_qt5, "Qt5 is required")
class TestQPainterDrawing(DrawingImageTester, unittest.TestCase):
def setUp(self):
application = QtGui.QApplication.instance()
Expand Down