Show More
@@ -165,7 +165,7 b' class TestPylabSwitch(object):' | |||||
165 | def enable_gui(self, gui): |
|
165 | def enable_gui(self, gui): | |
166 | pass |
|
166 | pass | |
167 |
|
167 | |||
168 | def setup(self): |
|
168 | def setup_method(self): | |
169 | import matplotlib |
|
169 | import matplotlib | |
170 | def act_mpl(backend): |
|
170 | def act_mpl(backend): | |
171 | matplotlib.rcParams['backend'] = backend |
|
171 | matplotlib.rcParams['backend'] = backend | |
@@ -184,7 +184,7 b' class TestPylabSwitch(object):' | |||||
184 | self._save_cis = backend_inline.configure_inline_support |
|
184 | self._save_cis = backend_inline.configure_inline_support | |
185 | backend_inline.configure_inline_support = lambda *a, **kw: None |
|
185 | backend_inline.configure_inline_support = lambda *a, **kw: None | |
186 |
|
186 | |||
187 | def teardown(self): |
|
187 | def teardown_method(self): | |
188 | pt.activate_matplotlib = self._save_am |
|
188 | pt.activate_matplotlib = self._save_am | |
189 | pt.import_pylab = self._save_ip |
|
189 | pt.import_pylab = self._save_ip | |
190 | backend_inline.configure_inline_support = self._save_cis |
|
190 | backend_inline.configure_inline_support = self._save_cis |
General Comments 0
You need to be logged in to leave comments.
Login now