Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thrasibule committed Jul 11, 2019
1 parent 68dc7d1 commit 7b350bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numpy/random/tests/test_generator_mt19937.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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':
Expand Down

0 comments on commit 7b350bd

Please sign in to comment.