##// END OF EJS Templates
Backport PR #11087: FIX: Remove the non-interactive backends from pylabtools.backend2gui
Thomas Kluyver -
Show More
@@ -48,6 +48,9 b" backend2gui['CocoaAgg'] = 'osx'"
48 48 # And some backends that don't need GUI integration
49 49 del backend2gui['nbAgg']
50 50 del backend2gui['agg']
51 del backend2gui['svg']
52 del backend2gui['pdf']
53 del backend2gui['ps']
51 54 del backend2gui['module://ipykernel.pylab.backend_inline']
52 55
53 56 #-----------------------------------------------------------------------------
@@ -106,7 +106,7 b' def test_select_figure_formats_kwargs():'
106 106 f = formatter.lookup_by_type(Figure)
107 107 cell = f.__closure__[0].cell_contents
108 108 nt.assert_equal(cell, kwargs)
109
109
110 110 # check that the formatter doesn't raise
111 111 fig = plt.figure()
112 112 ax = fig.add_subplot(1,1,1)
@@ -151,7 +151,7 b' class TestPylabSwitch(object):'
151 151 class Shell(InteractiveShell):
152 152 def enable_gui(self, gui):
153 153 pass
154
154
155 155 def setup(self):
156 156 import matplotlib
157 157 def act_mpl(backend):
@@ -245,3 +245,7 b' class TestPylabSwitch(object):'
245 245 nt.assert_equal(gui, 'qt')
246 246 nt.assert_equal(s.pylab_gui_select, 'qt')
247 247
248
249 def test_no_gui_backends():
250 for k in ['agg', 'svg', 'pdf', 'ps']:
251 assert k not in pt.backend2gui
General Comments 0
You need to be logged in to leave comments. Login now