Skip to content

Commit 7e72cb9

Browse files
authored
Merge pull request numpy#19568 from charris/fix-test_vonmises_large_kappa_range
BUG: Seed random state in test_vonmises_large_kappa_range.
2 parents 2f782a2 + 81e4fe4 commit 7e72cb9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

numpy/random/tests/test_generator_mt19937.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,6 +1760,7 @@ def test_vonmises_large_kappa(self, kappa):
17601760
@pytest.mark.parametrize("mu", [-7., -np.pi, -3.1, np.pi, 3.2])
17611761
@pytest.mark.parametrize("kappa", [1e-9, 1e-6, 1, 1e3, 1e15])
17621762
def test_vonmises_large_kappa_range(self, mu, kappa):
1763+
random = Generator(MT19937(self.seed))
17631764
r = random.vonmises(mu, kappa, 50)
17641765
assert_(np.all(r > -np.pi) and np.all(r <= np.pi))
17651766

0 commit comments

Comments
 (0)