Skip to content

Commit 04c77fe

Browse files
committed
Deal with os variance
1 parent f58b545 commit 04c77fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hdbscan/tests/test_branches.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,9 @@ def test_allow_single_branch_with_persistence():
267267
).fit(c)
268268
unique_labels = np.unique(b.labels_)
269269
assert len(unique_labels) == 6
270-
assert np.sum(b.branch_probabilities_ == 0) == 71
270+
# Mac & Windows give 71, Linux gives 72. Probably different random values.
271+
num_noise = np.sum(b.branch_probabilities_ == 0)
272+
assert (num_noise == 71) | (num_noise == 72)
271273

272274
# Adding presistence removes some branches
273275
b = BranchDetector(

0 commit comments

Comments
 (0)