Skip to content

Commit

Permalink
Add minor tests enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
Pan Jan committed Apr 6, 2020
1 parent b4c0a7a commit 9dda11f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion numpy/random/tests/test_generator_mt19937.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def test_p_non_contiguous(self):
assert_array_equal(non_contig, contig)

def test_multidimensional_pvals(self):
assert_raises(ValueError, random.multinomial, 10, [[0, 1], [1, 0]])
assert_raises(ValueError, random.multinomial, 10, [[0, 1]])
assert_raises(ValueError, random.multinomial, 10, [[0], [1]])
assert_raises(ValueError, random.multinomial, 10, [[[0], [1]], [[1], [0]]])
assert_raises(ValueError, random.multinomial, 10, np.array([[0, 1], [1, 0]]))
Expand Down
2 changes: 1 addition & 1 deletion numpy/random/tests/test_random.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def test_size(self):
float(1))

def test_multidimensional_pvals(self):
assert_raises(ValueError, np.random.multinomial, 10, [[0, 1], [1, 0]])
assert_raises(ValueError, np.random.multinomial, 10, [[0, 1]])
assert_raises(ValueError, np.random.multinomial, 10, [[0], [1]])
assert_raises(ValueError, np.random.multinomial, 10, [[[0], [1]], [[1], [0]]])
assert_raises(ValueError, np.random.multinomial, 10, np.array([[0, 1], [1, 0]]))
Expand Down

0 comments on commit 9dda11f

Please sign in to comment.