8000 More explicit assertion error message in test_dbscan_metric_params · thomasjpfan/scikit-learn@a1cdcd0 · GitHub
[go: up one dir, main page]

Skip to content

Commit a1cdcd0

Browse files
committed
More explicit assertion error message in test_dbscan_metric_params
1 parent ff0e581 commit a1cdcd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/cluster/tests/test_dbscan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def test_dbscan_metric_params():
180180
min_samples=min_samples,
181181
algorithm="ball_tree",
182182
).fit(X)
183-
assert not warns
183+
assert not warns, warns[0].message
184184
core_sample_1, labels_1 = db.core_sample_indices_, db.labels_
185185

186186
# Test that sample labels are the same as passing Minkowski 'p' directly

0 commit comments

Comments
 (0)
0