Skip to content

Commit 84c36d1

Browse files
committed
Fix unit tests on systems without Qt backend
Re matplotlib#19075
1 parent 25a4eee commit 84c36d1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/matplotlib/tests/test_backend_qt.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
1111

1212

1313
try:
14-
from matplotlib.backends.qt_compat import QtGui
14+
from matplotlib.backends.qt_compat import QtGui, QtWidgets
15+
from matplotlib.backends.qt_editor import _formlayout
1516
except ImportError:
1617
pytestmark = pytest.mark.skip('No usable Qt5 bindings')
17-
from matplotlib.backends.qt_compat import QtWidgets
18-
from matplotlib.backends.qt_editor import _formlayout
1918

2019

2120
@pytest.fixture

0 commit comments

Comments
 (0)