From 7746415a576b895e1af090b171719d060ac4002c 2020-10-13 02:08:27 From: Matthias Bussonnier Date: 2020-10-13 02:08:27 Subject: [PATCH] Backport PR #12617: skip test if ipykernel not there. --- diff --git a/IPython/core/tests/test_display.py b/IPython/core/tests/test_display.py index 95f1eb6..0105ee8 100644 --- a/IPython/core/tests/test_display.py +++ b/IPython/core/tests/test_display.py @@ -138,7 +138,9 @@ def _get_inline_config(): from ipykernel.pylab.config import InlineBackend return InlineBackend.instance() -@dec.skip_without('matplotlib') + +@dec.skip_without("ipykernel") +@dec.skip_without("matplotlib") def test_set_matplotlib_close(): cfg = _get_inline_config() cfg.close_figures = False @@ -173,7 +175,9 @@ def test_set_matplotlib_formats(): else: nt.assert_not_in(Figure, f) -@dec.skip_without('matplotlib') + +@dec.skip_without("ipykernel") +@dec.skip_without("matplotlib") def test_set_matplotlib_formats_kwargs(): from matplotlib.figure import Figure ip = get_ipython()