File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1313from sklearn .utils .testing import assert_in
1414from sklearn .utils .testing import assert_not_in
1515from sklearn .utils .testing import assert_no_warnings
16+ from sklearn .utils .testing import if_matplotlib
1617from hdbscan import HDBSCAN
1718from hdbscan import hdbscan
1819from sklearn .cluster .tests .common import generate_clustered_data
@@ -142,12 +143,10 @@ def test_hdbscan_boruvka_balltree_matches():
142143
143144 assert_less (num_mismatches / float (data .shape [0 ]), 0.01 )
144145
145- def test_condensed_tree ():
146-
146+ def test_condensed_tree_plot ():
147147 clusterer = HDBSCAN ().fit (X )
148- ax = clusterer .condensed_tree_ .plot ()
148+ if_matplotlib ( clusterer .condensed_tree_ .plot ) ()
149149
150- assert (ax is not None )
151150
152151def test_hdbscan_badargs ():
153152 assert_raises (ValueError ,
You can’t perform that action at this time.
0 commit comments