Show More
@@ -48,6 +48,9 b" backend2gui['CocoaAgg'] = 'osx'" | |||||
48 | # And some backends that don't need GUI integration |
|
48 | # And some backends that don't need GUI integration | |
49 | del backend2gui['nbAgg'] |
|
49 | del backend2gui['nbAgg'] | |
50 | del backend2gui['agg'] |
|
50 | del backend2gui['agg'] | |
|
51 | del backend2gui['svg'] | |||
|
52 | del backend2gui['pdf'] | |||
|
53 | del backend2gui['ps'] | |||
51 | del backend2gui['module://ipykernel.pylab.backend_inline'] |
|
54 | del backend2gui['module://ipykernel.pylab.backend_inline'] | |
52 |
|
55 | |||
53 | #----------------------------------------------------------------------------- |
|
56 | #----------------------------------------------------------------------------- |
@@ -106,7 +106,7 b' def test_select_figure_formats_kwargs():' | |||||
106 | f = formatter.lookup_by_type(Figure) |
|
106 | f = formatter.lookup_by_type(Figure) | |
107 | cell = f.__closure__[0].cell_contents |
|
107 | cell = f.__closure__[0].cell_contents | |
108 | nt.assert_equal(cell, kwargs) |
|
108 | nt.assert_equal(cell, kwargs) | |
109 |
|
109 | |||
110 | # check that the formatter doesn't raise |
|
110 | # check that the formatter doesn't raise | |
111 | fig = plt.figure() |
|
111 | fig = plt.figure() | |
112 | ax = fig.add_subplot(1,1,1) |
|
112 | ax = fig.add_subplot(1,1,1) | |
@@ -151,7 +151,7 b' class TestPylabSwitch(object):' | |||||
151 | class Shell(InteractiveShell): |
|
151 | class Shell(InteractiveShell): | |
152 | def enable_gui(self, gui): |
|
152 | def enable_gui(self, gui): | |
153 | pass |
|
153 | pass | |
154 |
|
154 | |||
155 | def setup(self): |
|
155 | def setup(self): | |
156 | import matplotlib |
|
156 | import matplotlib | |
157 | def act_mpl(backend): |
|
157 | def act_mpl(backend): | |
@@ -245,3 +245,7 b' class TestPylabSwitch(object):' | |||||
245 | nt.assert_equal(gui, 'qt') |
|
245 | nt.assert_equal(gui, 'qt') | |
246 | nt.assert_equal(s.pylab_gui_select, 'qt') |
|
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