Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaharid committed Jul 12, 2023
1 parent a138333 commit 80d6b3f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions validphys2/src/validphys/tests/test_covmats.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,8 @@ def test_sqrt_covmat(data_config):
# rectangular covmat matrix
sqrt_covmat(rectangular_covmat)

with pytest.raises(ValueError):
# Check whether an empty covmat input raises
# a ValueError
sqrt_covmat(np.array([]))
# Test for empty covmat
assert sqrt_covmat(np.array([])).size == 0

config = dict(data_config)
config["dataset_inputs"] = CORR_DATA
Expand Down

0 comments on commit 80d6b3f

Please sign in to comment.