Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ea9d195

Browse files
authored
Merge pull request #24173 from rcomer/purge-nose-tests
TST: convert nose-style tests
2 parents 493d608 + 20e87d1 commit ea9d195

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/matplotlib/tests/test_cbook.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def test_rgba(self):
5151

5252

5353
class Test_boxplot_stats:
54-
def setup(self):
54+
def setup_method(self):
5555
np.random.seed(937)
5656
self.nrows = 37
5757
self.ncols = 4
@@ -177,7 +177,7 @@ def test_boxplot_stats_autorange_false(self):
177177

178178

179179
class Test_callback_registry:
180-
def setup(self):
180+
def setup_method(self):
181181
self.signal = 'test'
182182
self.callbacks = cbook.CallbackRegistry()
183183

lib/matplotlib/tests/test_mlab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def test_window():
9797

9898

9999
class TestDetrend:
100-
def setup(self):
100+
def setup_method(self):
101101
np.random.seed(0)
102102
n = 1000
103103
x = np.linspace(0., 100, n)

0 commit comments

Comments
 (0)