From 7b350bd55e8b9fc04281799232a191d705bff115 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Fri, 5 Jul 2019 21:45:30 -0400 Subject: [PATCH] fix tests --- numpy/random/tests/test_generator_mt19937.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/numpy/random/tests/test_generator_mt19937.py b/numpy/random/tests/test_generator_mt19937.py index e920926b9001..3c8e1ab6d474 100644 --- a/numpy/random/tests/test_generator_mt19937.py +++ b/numpy/random/tests/test_generator_mt19937.py @@ -568,7 +568,7 @@ def test_choice_nonuniform_replace(self): def test_choice_uniform_noreplace(self): random = Generator(MT19937(self.seed)) actual = random.choice(4, 3, replace=False) - desired = np.array([0, 2, 3], dtype=np.int64) + desired = np.array([2, 0, 3], dtype=np.int64) assert_array_equal(actual, desired) def test_choice_nonuniform_noreplace(self): @@ -688,7 +688,7 @@ def test_choice_return_type(self): def test_choice_large_sample(self): import hashlib - choice_hash = '411103da935251235af7f643ad6a3327' + choice_hash = 'd44962a0b1e92f4a3373c23222244e21' random = Generator(MT19937(self.seed)) actual = random.choice(10000, 5000, replace=False) if sys.byteorder != 'little':