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