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