Skip to content

Commit

Permalink
skip test if numpy isn't available
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbachmann committed Apr 5, 2024
1 parent 6c5b37f commit e6a33b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,7 @@ def test_cdist_not_symmetric():


def test_cpdist_not_same_length():
pytest.importorskip("numpy")
with pytest.raises(ValueError, match="Length of queries and choices must be the same!"):
process.cpdist(["a", "b"], [])
with pytest.raises(ValueError, match="Length of queries and choices must be the same!"):
Expand Down

0 comments on commit e6a33b1

Please sign in to comment.