summaryrefslogtreecommitdiff
path: root/numpy/random
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2019-07-05 21:45:30 -0400
committerGuillaume Horel <guillaume.horel@gmail.com>2019-07-11 10:00:03 -0400
commit7b350bd55e8b9fc04281799232a191d705bff115 (patch)
treebd188f63c4099b6f81399927665aa372586f2898 /numpy/random
parent68dc7d1b6c1a014db23e6f6b436bb713abcad09d (diff)
downloadnumpy-7b350bd55e8b9fc04281799232a191d705bff115.tar.gz
fix tests
Diffstat (limited to 'numpy/random')
-rw-r--r--numpy/random/tests/test_generator_mt19937.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/random/tests/test_generator_mt19937.py b/numpy/random/tests/test_generator_mt19937.py
index e920926b9..3c8e1ab6d 100644
--- a/numpy/random/tests/test_generator_mt19937.py
+++ b/numpy/random/tests/test_generator_mt19937.py
@@ -568,7 +568,7 @@ class TestRandomDist(object):
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 @@ class TestRandomDist(object):
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':