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

Skip to content

Backport PR #24173 on branch v3.6.x (TST: convert nose-style tests) #24180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/matplotlib/tests/test_cbook.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_rgba(self):


class Test_boxplot_stats:
def setup(self):
def setup_method(self):
np.random.seed(937)
self.nrows = 37
self.ncols = 4
Expand Down Expand Up @@ -177,7 +177,7 @@ def test_boxplot_stats_autorange_false(self):


class Test_callback_registry:
def setup(self):
def setup_method(self):
self.signal = 'test'
self.callbacks = cbook.CallbackRegistry()

Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/tests/test_mlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_window():


class TestDetrend:
def setup(self):
def setup_method(self):
np.random.seed(0)
n = 1000
x = np.linspace(0., 100, n)
Expand Down