Merge pull request #1999 from pijyoi/mpl_qt6

Re-enable Matplotlib Exporter Test for Qt6
This commit is contained in:
Ogi Moore 2021-09-29 09:54:37 -07:00 committed by GitHub
commit 95c302fd0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -3,13 +3,15 @@ import pytest
import pyqtgraph as pg
from pyqtgraph.exporters import MatplotlibExporter
pytest.importorskip("matplotlib")
import matplotlib
app = pg.mkQApp()
skip_qt6 = pytest.mark.skipif(
pg.Qt.QT_LIB in ["PySide6", "PyQt6"],
# availability of QtAgg signifies Qt6 support
pg.Qt.QT_LIB in ["PySide6", "PyQt6"] and "QtAgg" not in matplotlib.rcsetup.interactive_bk,
reason= (
"Matplotlib has no Qt6 support yet, "
"installed version of Matplotlib does not support Qt6, "
"see https://github.com/matplotlib/matplotlib/pull/19255"
)
)