Skip to content

Commit

Permalink
test_owdbscan: Remove test for get_kth_distances with orange distances
Browse files Browse the repository at this point in the history
This is never used except in tests and raises deprecation warnings with
numpy 1.25. This in turn results in significant test runtime of 40+
seconds for this test.
  • Loading branch information
ales-erjavec committed Jun 29, 2023
1 parent c111b97 commit 86152e7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Orange/widgets/unsupervised/tests/test_owdbscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,6 @@ def test_get_kth_distances(self):
# dists must be sorted
np.testing.assert_array_equal(dists, np.sort(dists)[::-1])

# test with different distance - e.g. Orange distance
dists = get_kth_distances(self.iris, Euclidean, k=5)
self.assertEqual(len(self.iris), len(dists))
# dists must be sorted
np.testing.assert_array_equal(dists, np.sort(dists)[::-1])

def test_metric_changed(self):
w = self.widget

Expand Down

0 comments on commit 86152e7

Please sign in to comment.