##// END OF EJS Templates
Fix compatibility with pytest 8 (#14413)...
M Bussonnier -
r28736:f68c7376 merge
parent child Browse files
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
@@ -94,7 +94,7 b' qtconsole = ['
94 ]
94 ]
95 terminal = []
95 terminal = []
96 test = [
96 test = [
97 "pytest<8",
97 "pytest",
98 "pytest-asyncio<0.22",
98 "pytest-asyncio<0.22",
99 "testpath",
99 "testpath",
100 "pickleshare",
100 "pickleshare",
General Comments 0
You need to be logged in to leave comments. Login now