diff options
Diffstat (limited to 'numpy/random/tests/test_random.py')
-rw-r--r-- | numpy/random/tests/test_random.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/numpy/random/tests/test_random.py b/numpy/random/tests/test_random.py index ecda5dab5..6b4c82bc9 100644 --- a/numpy/random/tests/test_random.py +++ b/numpy/random/tests/test_random.py @@ -101,7 +101,7 @@ class TestMultinomial: class TestSetState: - def setup(self): + def setup_method(self): self.seed = 1234567890 self.prng = random.RandomState(self.seed) self.state = self.prng.get_state() @@ -290,7 +290,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): @@ -1048,7 +1048,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 setSeed(self): @@ -1617,7 +1617,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): @@ -1660,7 +1660,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]) |