Skip to content

Commit

Permalink
Fix deprecation warning in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbowly committed Jun 26, 2024
1 parent b590e76 commit 5234b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_bipartite_matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def assert_is_unweighted_matching(self, matching):
assert_allclose(matching.data, np.ones(matching.data.shape))
adj = matching.todense()
assert_allclose(adj, adj.T)
self.assertTrue(np.alltrue(adj.sum(axis=0) <= 1))
self.assertTrue(np.all(adj.sum(axis=0) <= 1))

def test_empty(self):
# Matching of an empty graph is empty
Expand Down

0 comments on commit 5234b1a

Please sign in to comment.