Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 504d629 commit 3d8a6cbCopy full SHA for 3d8a6cb
lib/matplotlib/testing/conftest.py
@@ -46,7 +46,7 @@ def mpl_test_settings(request):
46
prev_backend = matplotlib.get_backend()
47
48
# special case Qt backend importing to avoid conflicts
49
- if backend == 'Qt4Agg':
+ if backend.lower().startswith('qt4'):
50
if any(k in sys.modules for k in ('PyQt5', 'PySide2')):
51
pytest.skip('Qt5 binding already imported')
52
try:
@@ -57,7 +57,7 @@ def mpl_test_settings(request):
57
import PySide
58
except ImportError:
59
pytest.skip("Failed to import a Qt4 binding.")
60
- elif backend == 'Qt5Agg':
+ elif backend.lower().startswith('qt5'):
61
if any(k in sys.modules for k in ('PyQt4', 'PySide')):
62
pytest.skip('Qt4 binding already imported')
63
0 commit comments