Skip to content

Commit

Permalink
fix cov test
Browse files Browse the repository at this point in the history
  • Loading branch information
OriolAbril committed Feb 21, 2020
1 parent 52ffbf2 commit 0191a8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arviz/tests/base_tests/test_plots_matplotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,9 @@ def test_plot_kde(continuous_model, kwargs):
assert axes


@pytest.mark.parametrize("x", [np.random.randn(8), np.random.randn(8, 8), np.random.randn(8, 8, 8)])
def test_cov(x):
@pytest.mark.parametrize("shape", [(8,), (8, 8), (8, 8, 8)])
def test_cov(shape):
x = np.random.randn(*shape)
if x.ndim <= 2:
assert np.allclose(_cov(x), np.cov(x))
else:
Expand Down

0 comments on commit 0191a8d

Please sign in to comment.