Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d1f6b76

Browse files
authored
Merge pull request #22979 from QuLogic/skip-backend-tests
Skip additional backend tests on import error
2 parents f8cd2c9 + dc5b6e8 commit d1f6b76

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/tests/test_backend_gtk3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
pytest.importorskip("matplotlib.backends.backend_gtk3agg")
77

88

9-
@pytest.mark.backend("gtk3agg")
9+
@pytest.mark.backend("gtk3agg", skip_on_importerror=True)
1010
def test_correct_key():
1111
pytest.xfail("test_widget_send_event is not triggering key_press_event")
1212

lib/matplotlib/tests/test_backend_qt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def test_other_signal_before_sigint(target, kwargs):
193193
plt.figure()
194194

195195

196-
@pytest.mark.backend('Qt5Agg')
196+
@pytest.mark.backend('Qt5Agg', skip_on_importerror=True)
197197
def test_fig_sigint_override(qt_core):
198198
from matplotlib.backends.backend_qt5 import _BackendQT5
199199
# Create a figure

0 commit comments

Comments
 (0)