8000 fix tests · numpy/numpy@35d64a6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 35d64a6

Browse files
committed
fix tests
1 parent e6b5200 commit 35d64a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpy/random/tests/test_generator_mt19937.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ def test_choice_nonuniform_replace(self):
570570
def test_choice_uniform_noreplace(self):
571571
random.bit_generator.seed(self.seed)
572572
actual = random.choice(4, 3, replace=False)
573-
desired = np.array([0, 2, 3], dtype=np.int64)
573+
desired = np.array([1, 2, 3], dtype=np.int64)
574574
assert_array_equal(actual, desired)
575575

576576
def test_choice_nonuniform_noreplace(self):
@@ -690,7 +690,7 @@ def test_choice_return_type(self):
690690
def test_choice_large_sample(self):
691691
import hashlib
692692

693-
choice_hash = '3a05f36edeb16f4c7651d1bc2f42a430'
693+
choice_hash = '9e8bc4459e2f3da8b15006caf848a140'
694694
random.bit_generator.seed(self.seed)
695695
actual = random.choice(10000, 5000, replace=False)
696696
if sys.byteorder != 'little':

0 commit comments

Comments
 (0)
0