summaryrefslogtreecommitdiff
path: root/numpy/random/tests/test_randomstate.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/random/tests/test_randomstate.py')
-rw-r--r--numpy/random/tests/test_randomstate.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/numpy/random/tests/test_randomstate.py b/numpy/random/tests/test_randomstate.py
index dc539c4ac..be9a9c339 100644
--- a/numpy/random/tests/test_randomstate.py
+++ b/numpy/random/tests/test_randomstate.py
@@ -185,7 +185,7 @@ class TestMultinomial:
class TestSetState:
- def setup(self):
+ def setup_method(self):
self.seed = 1234567890
self.random_state = random.RandomState(self.seed)
self.state = self.random_state.get_state()
@@ -436,7 +436,7 @@ class TestRandomDist:
# Make sure the random distribution returns the correct value for a
# given seed
- def setup(self):
+ def setup_method(self):
self.seed = 1234567890
def test_rand(self):
@@ -1310,7 +1310,7 @@ class TestRandomDist:
class TestBroadcast:
# tests that functions that broadcast behave
# correctly when presented with non-scalar arguments
- def setup(self):
+ def setup_method(self):
self.seed = 123456789
def set_seed(self):
@@ -1896,7 +1896,7 @@ class TestBroadcast:
class TestThread:
# make sure each state produces the same sequence even in threads
- def setup(self):
+ def setup_method(self):
self.seeds = range(4)
def check_function(self, function, sz):
@@ -1942,7 +1942,7 @@ class TestThread:
# See Issue #4263
class TestSingleEltArrayInput:
- def setup(self):
+ def setup_method(self):
self.argOne = np.array([2])
self.argTwo = np.array([3])
self.argThree = np.array([4])